From a strategic perspective, the US probably needs to onshore chip manufacturing before China's chip industry reaches parity with Taiwan's. If they don't, China could effectively blockade the island and remain unaffected, while all of its competitors are. The US would lose the initiative, and have to make a reactive decision on whether or not it wants to be in a shooting war, which is a bad place to be.
Econ 101 was nice in theory when the US had no rivals. But it does now, and a country that relies on its military and technological edge as part of its economic strategy (i.e. reserve currency status, exerting soft power through global institutions that are backed up by a credible threat of violence) can't be in a position where it gets outbuilt by its competitors.