However, when you get to the US, you realize that American citizens make $80k - $100k / year for the same job. What do you do? You can't switch jobs, because the H1B program makes it very difficult to do so. You can't threaten to quit, because then your visa only gives you a few months before you have to go back to India -- and back to the $10k / year job. You have no choice -- if you want the $60k / year job, you have to to stick with the company who hired you. So you stay.
The result? The salary for software engineers is driven down. The employer gets extra profits while getting the same work. The software engineers are now making less than they would be if either 1) the H1B program didn't exist, or 2) the H1B program were reformed so that switching jobs is easier.
(Trump did #1. However, #2, reforming H1B, is far better for all employees in the long run. Not surprisingly, #2 is not hugely supported by all companies).