The workers in the cheaper country don’t need to be as productive.
If you’re paying them 5x less in total compensation, and they’re half as productive, you’re still better off with the cheaper labor.
No healthcare, no pensions, no environmental laws will save a company lots of money.