No sane company would choose to do this. While many of the criticisms of cyberpunk are correct, this is one where the genre missed the mark. The problem we have now in the US is actually one of a form of corporate socialism, in which companies take extreme risks and privatize the profits while externalizing the costs. The bailout in 2008 is an infamous example, but it is far from the only one. The same thing happened with the CARES Act in 2020.
The economic concept of externalities is useful to consider here, as corporations are all about maximizing externalities and thus profits. If something is a result of a transaction but is not measured within that transaction, it will lead to a type of market failure that benefits private companies at the expense of wider society. Pollution in general falls into this category unless it is regulated, as the cost is always borne by those outside of the given transaction. CO2 and climate change not being accounted for in energy pricing is probably the most well known version, but similar problems affect things like plastic waste and lack of recycling. The Chinese government recently banned imported low quality plastic because the environmental and public health costs were greater than the profits, but companies still made enough of a profit for it to be worth it from their more limited perspective.
Government funded infrastructure is also an externality, and private companies benefit from not paying for it. While there are companies that make a profit maintaining infrastructure, they generally only do so using government funds. The problem is that companies benefit more from allowing government spending to maintain it than they would from taking it over themselves. This also applies to the internet and computing, where much of the infrastructure comes from either open source or government research but companies still make massive profits on selling the ends of the road.
Private military companies are similarly entities that benefit from externalities in the same way. They externalize their training costs, most of the heavy and expensive weapons and logistical support, as well as the fact that they lack the outright military power to take on nation states.