And, for a refrigerator and a lot of loads, being down for 2 days straight is way worse than a few hours a year. losing 48 hours of supply a year if broken into 2 hour chunks is not nearly as bad as losing 48 consecutive hours.
Now I live in a rural area and it's uncommon to avoid outages more than a month. We have an automatic transfer switch and fuel generator from previous owners and it saves hundreds of dollars in frozen food.
This is in the US by the way. If you're investing in a transfer switch and generator now, the cost is going to quickly approach a modest solar + battery set up with a whole house inverter, and of course, you save money all year that way, not just in outages.