VPN connections drop. Wi-Fi switches networks, the server restarts, your laptop wakes from sleep before the tunnel reconnects. In those few seconds, apps keep trying to talk to the internet, and without protection they'll do it over your ordinary connection. A kill switch stops that by blocking everything except the tunnel.

Implementations vary a lot. Good ones use firewall rules at the operating system level, so traffic is blocked even if the VPN app crashes. Weaker ones just watch the connection and try to cut things off after a drop, which can leave a gap. Some apps have the feature but ship with it off. On Android you can turn on "Always-on VPN" and "Block connections without VPN" in the system settings, which is more reliable than most in-app options.

Tor-focused systems take the idea further. Whonix's workstation has no route to the internet except through the Tor gateway, and Tails firewalls off anything that doesn't go through Tor. Nothing can leak because there's no other path. That's the same principle as a kill switch, applied by design rather than bolted on.

A kill switch doesn't fix DNS leaks or WebRTC leaks that happen while the tunnel is up; those are separate problems.