This is so much bubble thinking. The average senior developer in America barely make $150K. Most will never see $200K inflation adjusted in their entire career. Hell the way comp has stagnated for software engineers in tier 2 cities - where most work at banks, insurance companies, “the enterprise” - may never see $200K nominally. You can even look and see what most YC companies pay their “founding engineers”.
Yes I know what BigTech an adjacent makes. Been there done that.
People always make the huge salary argument. But youre totally right. Your average senior engineer in US is making $130k. These $300k salaries are relatively rare. But people hire H1B to pay them $90k and save on benefits and salary.