You can check a couple things if your tablet enters Airplane Mode when you don't want it to. First, see if the device has a physical wireless switch; if it's broken or stuck halfway between on and off, that might cause your internet to turn off seemingly on its own. Otherwise, check Settings > System > Battery to see if any power-saving settings are causing the network to switch off.