Why on earth would you connect a fridge to the internet?

It’s a question not unreasonably being asked after hackers turned off or turned up loads of shops’ connected chillers across Europe, ruining hundreds of tonnes of food.