If it really is Iran, the best reasoning I can think of is that it's like a demonstration of their offensive hacking capabilities to the US. It lets them show that they can use computer hacking to disrupt commercial operations and cause economic losses. If you look at it from that way, it makes sense that they went after Europe. Going after the US could cause an escalation in the war, so instead they go after European countries which will not do anything in response. The freezer controllers that were hacked are also made by Danfoss, a European company. I have no knowledge whatsoever of the commercial freezer market, but if being European means that Danfoss has a higher market share in Europe compared to the US, it lets them pull off this demonstration without burning a more valuable exploit.
Why? Iran has declared on many occasions that all European countries (from Turkey to Sweden, and everything in between) are their enemy. And how they responded during the US/Iran conflict is by hitting literally everything they possibly could if they thought for one second it would make an impact.
They are also not stupid. They fully realize the Hormuz blockade is a problem for Europe and a big advantage for US and India (in the sense that it literally increases the ability of the US to wage war on Iran by increasing the oil revenues that pay for it).
Iran is using terrorism as a tactic: they are attacking everyone and everything, blaming the US, while simply doing the absolute maximum damage they possibly can to everyone, not to the US (because they mostly can't), because the US is a rational actor and will choose to minimize damage to the world economy as a whole. This is then used like a hostage (in addition to actual hostages) to get what they want, with ever increasing demands.
To put it more HackerNews: That Iran disrupts your life (as a civilian) is not a bug, but a feature, and they will do everything in their power to increase the disruption until they get everything they want.