Governments have lots of other incentives (like job creation, elections, income distribution)
A lot of private companies effectively operate above the law too! In theory the law can be enforced on them. In practice it often isn't.
A government has a monopoly on violence. A government has a monopoly on money printing and taxation. A government has a monopoly on the legislation. A government has far more human and financial resources than any other economic actor within its borders.
If a company goes out of business, people lose their jobs. If a government goes out of business, people lose their lives.
It is not a difference in degree, it is a difference in kind. There is a reason that economist distinguish between private firms and government.
Yes, they do favor their own companies and provide subsidies etc. that’s not the problem though, the problem is that they’re undercutting other companies by selling below cost thanks to those subsidies. Otherwise, we would have to call our farming subsidies the same.
I was originally trying to point out that it has always been important to keep your vital industries secure, it was very stupid of Intel and others to transfer so much technology abroad (to anyone) just to increase their margins, I think ASML did the best: You can purchase our machine, but that’s pretty much it.