Often, the person may not have been as productive, happy, or well compensated in their own country.
Also, over time, some of those people make money in the US and take that, their knowledge and skills and go back home to share there. Everyone is better off.
I was discussing this elsewhere, and dug up something I wrote 11 years ago, and I think I'm still pretty happy with it:
https://journal.dedasys.com/2014/12/29/people-places-and-job...