For a government, it makes sense to periodically step back, figure out who and what the market is not serving that it should really be serving and create interventions to redirect the market.
This is why carbon regulations, carbon pricing and systems of disclosure is so important. And all of these entails the government and the people making a choice to take away that false liberty of choice that the market creates. This decision is driven by seeking to serve the people who otherwise would not be served by the market.
For example, in the case of people who are hard-to-insure. The market-based insurance approach makes things harder and harder for them as the companies are able to discriminate against them and pool only customers with better risk profiles.
The invisible hand is invisible but it is still guiding and directing. Better for us to articulate as a society how we want the market to serve us and get it to do just that.