Because the country has lower standards of living and a government that busts independent unions while deliberately manipulating their currency to make sure workers do not end up with too much buying power.
That is a bit circular. The economy isn't like weather where some places just have less rain. China's cost of living is 40-70% lower because the people doing the work are willing to charge less.
In some cases, because we make it illegal for Americans to act on it even they were willing/interested. That’s not the majority of the story, but it’s part of it.
Why are Chinese willing to do labor for low-cost while Americans are "unwilling/uninterested" in such labor?