the phone does it when you set it to automatic. but you haven’t set it to automatic, so it sees 4g and 3g and says “nope, my user would rather have no service than 4g or 3g service”.
you may want to get a UPS for your modem and wifi. a nice 1000watt UPS should give you a few hours of internet when the power goes out.