They don't have a choice. The US controls their production equipment, design and software.
Taiwanese would be really stupid if they just gave away everything to the US. Yeah don't forget the US would less likely come to Taiwan's aid if they could make those precious chips at home and not need Taiwan.
China is the only country in the world other than US to have 1. A complete semiconductor industry 2. A competitive semiconductor industry.
Taiwan and SK are competitive but not complete. Their inputs and standards are controlled by the US.
Warsaw Pact was complete but not competitive. DDR and USSR had full semiconductor industries with tools, but were 10-15 years behind even in the 1980s.