The transition from coal to gas gave us cleaner air (and less CO2) but it definitely also had costs, some of them in the form of many thousands of dead Ukrainians, some of them in the form of concessions to the US.
But when higher prices stick around industries close or never opened.
This doesn't go away under socialism/communism/collectivism. If you set the price too low, you either have to build far more production capacity at public expense than needed, or you cope with regular blackouts.