Well, technically they can't work without this setup.
All machines that are behind a router have the same public IP address. Therefore, when the router receives a packet, it doesn't know where to forward it unless someone told it explicitely, based on the port.