Every device including the WIRED printer gets an internal IP address from the router.

The wireless computers look for the printer and when found - print.