I was at one company that would spend more money to offshore, because it was “cheaper”. I think it had more to do with being able to write it off vs having employees.
You actually raise another good point—the more onerous it becomes, through regulations, taxes and laws—to take on regular employees, the more readily companies will look for ways around the burden.