Your phone creates a hotspot by turning the cellular network signal into a Wi-Fi signal, essentially functioning like a modem and a router in one device.