TSMC is not really like a sweat-shop, which could be easily replicated at that level of sophistication, as some here seem to be implying. To expand a bit on what some other commenters already pointed out, at that level, there are world-wide only 3 players, TSMC, Intel, and Samsung, who are producing or about to produce with the 3nm process. In comparison, e.g. GlobalFoundries has 12 nm "at best". And for a range of electronics, it doesn't need the most sophisticated semiconductors. But talking e.g. mobile phones, tablets and GPUs, there is a reason why companies such as Apple, AMD, Nvidia and also e.g. Qualcomm are customers of in particular TSMC. The high transistor density simply does a lot for such consumer products. And entering the market with something first, such as TSMC did with 7 nm and 5 nm, that helps a lot to get more orders in, such as e.g. by Apple for the A14 and M1 SoC.
So, while it is technically possible to "catch up", realistically that would require to invest a lot in (successful) R&D for own patents including having the qualified staff for it, then it would also require software development (in particular for the machines), and then about $20 billion for the newest-gen foundry. All in all, quite a different dimension than to simply get a simple sewing machine to start producing T-Shirts with common know-how.
Also, the worldwide median annual compensation for TSMC employees, excluding pensions and benefits, was $56,505 two years ago, and has since been raised reportedly. This median is something even most in the U.S. and Europe wouldn't mind earning. Which isn't to say that some staff in the U.S. wouldn't expect a bit more than that, working e.g. as principal engineer. But it is a quite different situation to a sweat-shop, where the minimum wage e.g. in Bangladesh is way below $1 per hour.