In a router/switch, the loopback interface is manually created and the network/host can be any IP address, not strictly 127.x.x.x
The auto-creation of loopback addresses in a router can create routing problems since these networks may advertise these networks/hosts if not properly configured.