When you configure an IP address on a router interface and enable it, routes appear automatically:
A route to the connected network (e.g., )
A local route to the interface IP itself (e.g., )
C 192.168.1.0/24 is directly connected, GigabitEthernet0/0
L 192.168.1.1/32 is directly connected, GigabitEthernet0/0
The "C" route handles traffic to any host on that subnet. The "L" route handles traffic destined specifically for the router's interface IP. Both are removed automatically if the interface goes down or loses its IP configuration.