I get your point, but it seems to ignore the geopolitics involved in something like the CHIPS act. Those government investments are not to save the poor struggling semi industry, it is a strategic move to limit overseas dependencies in a supply chain that is seen as critical for the MIC and the economy at large.
You are right that those semi companies do not need the government investments to build fabs. However, those fabs materialize overseas, depending on overseas supply chains. The EU and US regions want to build out more of the supply chain domestically, for strategic reasons. Those governments could simply legislate to impose heavy restrictions, but that hurts the competitiveness of the companies involved. And so, they combine that stick with a carrot, which is the government investments. You can already see increased restrictions on the semi supply chain in China, timed right after the CHIPS act passed.