The business model of these companies is to provide workers at a cost below what it costs in the US. This business model is a big reason why they are so successful. At scale these companies drive cost, and wages down. US workers then need to accept lower paying jobs. The worst thing about it is the wage depression here is most felt by the low-tier tech workers, not the well paid SV engineers.
And they don't always follow the rules either. Infosys and Cognizant have been caught up in legal trouble for visa fraud. [2]
[1] https://www.uscis.gov/tools/reports-and-studies/h-1b-employe... [2] https://www.documentcloud.org/documents/1347409-usa-v-infosy...