a router can only forward an ip packet as long as it has a match for a destination IP and the router can only forward an ip packet to an ip adress that's directly connected on the same LAN, which is fine since routers connect to multiple subnets and multiple lans thus making up the internet as a whole
At the end of the day all ip packets are sent to an ip address that's directly connected on the same LAN