They didn't actually hit 50C, right? I read it as setting the thermostat to 50C, which basically would just turn off the cooling compressor entirely - not heat the fridge.
I don't know about these particular fridges that got hacked, but most supermarket fridges I've seen around the world either have no doors, or if they do, their doors have wide gaps and no seals (they'd only make it harder for the shoppers to shop, and given the usual foot traffic, they'd wear out completely after a week).
Exceptions I've seen: some top-opened supermarket freezers (particularly with hinged, heavy doors), and most fridges in small shops. I've seen a few that could turn into pressure bombs this way, but I very much doubt these had any networking/remote control capabilities.
The enemy of the (perceived) enemy's economy. There is a war in Europe, and the EU and the USA are mostly involved economically. Causing economic damage to the financiers of the enemy is a standard Cold War pattern. Oil-embargo warfare is a double-edged sword: while it hits the EU hard, it also causes pain for Russia. This is most likely one in a series of low-hanging-fruit attacks intended to cause economic damage to Ukraine's financiers.