There are foods such as dairy products, that do need to be stored in the fridge to prevent those items from going bad, but there are also a fair amount of food items that are perfectly ok living in your pantry. Items such as hot sauces, jams, tropical fruit, and much more, as shelf-stable items and, might actually go bad faster in the fridge. Keep this in mind after big grocery shops!
https://www.trend-chaser.com/food/foods-that-dont-belong-in-the-fridge/