You make a DHCP reservation on the router for the server’s MAC address, and the server still gets a different IP. One possible reason is the client identifier it sends.
With the networkd backend, the DHCPv4 client identifier is not simply the MAC address by default. Some DHCP servers match reservations on that identifier, so your entry never hits. In that case I tell netplan to use the MAC:
network:
version: 2
ethernets:
enp3s0:
dhcp4: true
dhcp-identifier: mac
Then apply and look at the lease you got:
sudo netplan apply
ip -br -4 address show enp3s0
If the old address sticks around, the router probably still remembers the previous lease. Delete that entry on the router, or reboot the server, and ask again.
It is also handy when you clone a VM from a template and want the reservation to follow the virtual MAC that you set in the hypervisor.
This option only works with the networkd renderer. A desktop that uses NetworkManager handles the client identifier in its own settings, so the line has no use there. Give each machine its own MAC, because two machines with the same one will fight over the address.
Further reading: Netplan YAML reference