There's a huge number of examples (https://en.wikipedia.org/wiki/List_of_government-owned_compa...).
Essentially, if you think of government subsidies to private companies as assistance in making profit (which happens often when a government wants to promote a certain industry, even if it's only in form of a tax cut), having commercial companies to take care of common utilities is a way to assist the government paying for those utilities.
Most of the time it's because these companies are government-approved monopoly (no other company can enter the market) or because they're heavily subsidised using taxes (no other company can enter the market practically because competing against someone who you fund at the same time is impossible and because the prices are below the actual expenses) and are actually losing huge amounts of money. Typically railways all around Europe are not profitable at all.
Volkswagen is a very special case, but you're partially right. I'd say it's an exception to the rule though.
That was the key point of the original discussion about Gates' money and rising inequality, so the example is very valid.