Additionally, when massive economies of scale drive the market towards a single provider, your options are to either trust a corporation to behave ethically (given history, a terrible choice) or to run a state monopoly.
There are definitely times when a planned system backed by the state can do a better job of serving the public good than a free market. The right answer is to be flexible and examine each situation independently rather than be dogmatic about government vs markets.