Amazon has filed numerous lawsuits for this - it’s well documented. I think there’s some some sort of ban for non-competes on w2s under $120k now (which doesn’t really help tech workers), but otherwise you’re wrong.
To your second point - there are always a bunch of well capitalized startups in the valley. Today it’s AI, before it was crypto, etc. These startups pay really really well when compared nationally. You dont have to get into 500k+ faang salaries to win against other locales
On top of that there are many more private companies that also pay good base + offer liquidity events for employees. Again - orders of magnitude more than seattle, austin or even nyc