One could argue that that is what the market should do with non competitive players.
But on the other hand more jobs were lost in solar than are now being saved in coal with massive subsidiaries (on the scale of 80k € per job in the coal industry towards the companies in that market if I remember correctly).
While I as a consumer have to pay around 1/3 of my gas price as 'tax' for the development of eco friendly tech.
Were the solar subsidiaries still in place when we bought and remodeled our home we would have gone more solar than just a little bit for hot water. It just didn't calculate for a two person home on the timescale of 30 years. And solar panels back then had an estimated lifespan of 15 to 25 years.
But that is just anecdata
For primary energy consumption the share of solar enery was 1.7 % in 2021.
Source: https://www.cleanenergywire.org/factsheets/germanys-energy-c...
Primary energy is thermal energy before conversion to work. PV's output has already been converted to electrical energy. One kWh of PV output displaces several kWh of primary thermal energy.
So the initial boost came from Germany (and a green-social-democrat goverment), that enabled the mainly Chinese manufacturers to continue the constant cost reductions ever since.