The public WiFi network is used to connect your device to a server. Instead of your own IP address, the traffic is associated with the server's.