It encrypts traffic
On open networks like a cafe or airport, others can potentially snoop on what you send. A VPN wraps your traffic in encryption and routes it through its own server, so the local network sees only scrambled data instead of the sites you visit.