I’m no expert but I believe it’s because Taiwan bet heavily on a process known as Extreme Ultraviolet (EUV).
The US companies cough Intel cough did not. Which is part of the reason they are laying off workers