That's just the algorithm. Every nation leveraging manufacturing for growth will do this.
When it eventually gets too expensive for native workers, manufacturing moves again [1]. Except the locals now have a sizable middle class and knowledge economy, and there are high value industrial processes left behind: automotive, aerospace, scientific, etc.
The whole world is growing up, and wealthy nations are paying for it (because they love low cost goods). It's a win-win situation.
([1] doesn't mean every nation shouldn't think defensively about its own supply chain for essential inputs and outputs.)