I never said foreign engineers are better, I said top ones are just as good as top ones here. Most of them work in low level positions for 70k a year but that's true for most American engineers as well. Cost would obviously play a big role for jobs of those level.
But I was replying to the comment about exceptional talent, not the overall job market.
What makes you think they WOULDN'T be as good? I've casually worked with some top tier Engineers from Baidu and Alibaba before this job and I'd say they'd have no problem landing a good position at Google or Facebook any day.
Why are they willing to do that? Because H1-Bs are scarce.
Why is it scarce? Because a lot of Americans have decided that H1-Bs should be limited, because they fear foreign workers coming over and working for less money.
If the foreign engineers are really that good then why do most of them do low level work with low status positions for 70k/year? Sounds like poor use of the "best and brightest" to me...