The most likely culprit is the VPN feature called a kill switch. Some VPNs have a kill switch that prevents devices from connecting to the internet whenever the VPN is switched off. You can simply go to your VPN app and disable the kill switch feature from the settings if you prefer not to use the feature.