Let's talk about immigrants that are being paid well, for a moment -- since Trump is seeking ban those people as well. (Also since I myself am one such immigrant, and I know several immigrants who were being paid extremely well, whose H-1B cases were denied by the US government under the guise of software engineering not being a "specialty occupation"[1]).
A friend of mine last year got a job as a L5 at Google, for around $380k a year in total ($190k base + $28.5k bonus + approx $160k stock). Plus a sign-on of $50k. First year pay is $430k. He's not doing rocket science, or managing. He's an individual contributor writing back end code.
Meanwhile, there are folks doing a similar jobs in Canada, who are making 100k CAD (on the high end), which is $73k USD. And the cost of living in big cities in Canada is shockingly high.
Now, you were saying something about bay area salaries being low? The salaries are, if anything, over the top insanely high.
Also, I'm trying to understand why companies go through all the processing delays, legal costs, frequent unjust denials since 2017, to hire someone who is not a citizen, while paying them well above the median for the job, if there is a supposed oversupply of talented top-tier skilled people who are looking for a job. The truth i that oversupply myth is just a lie, spun by people with anti-immigrant animus, plain and simple.
I can't fathom the head space you would have to be in to think that salaries are low. Incredible arrogance and entitlement, combined with a generous dose of xenophobia probably. Instead of being thankful, there are people who want to cut off / deport / exclude people from working in the US (and I mean people making these high salaries).
Also, I know a lot of H-1B holders with high salaries. I myself am one of them. (In fact I don't know any low-paid H-1B holders, but my social circles are all folks working at top companies or friends from other social groups.) The intense amount of hatred for immigrants on HN always continues to appall and amaze me.
I usually tend to refrain from commenting on these threads, because the toxic amount of contempt and hatred for immigrants that I come across in these threads is extremely upsetting, but sometimes it's better to speak up, than be silent.
[1] See: https://news.ycombinator.com/item?id=20671424