It's not an unreasonable thing for people of a country to think that the government should do more to protect their livelihoods over a corporation's balance sheet.
The correct framing is "The reason you're not getting a job at Amazon isn't because of people willing to work for less money,"
Big tech companies aren't like a Government job with rigorous pay grades based on role and seniority. You can have people even within the same role and level at big tech with multiple $100k pay discrepancies.
If someone's continued ability to stay in the country where they currently live is contingent on employment then they will accept worse conditions and pay.
That's the entire reason why tech companies use H1B, it's not as though there's a dearth of Java developers or DevOps people who are US citizens.
also nothing impressive about a senior SDE there, maybe 10 years ago it was impressive, best talent has either moved on or is L7+