TecMint published a tutorial about configuring a static IP address on Ubuntu 20.04.
How to Configure Static IP Address on Ubuntu 20.04
Usually, when a client system connects to a network via WiFi or an ethernet cable, it automatically picks an IP address from the router. This is made possible through the DHCP server which auto-assigns.
How to Configure Static IP Address on Ubuntu 20.04