Sure, tech companies have significant bonuses and RSUs as well. But the bonus is more limited in size. And the RSU vesting schedule is more fine-grained, explicitly defined in your employment contract, and the stock valuations are determined by the wider market.
Imagine working in finance for a year, expecting to earn $300k for a year's work, and then finding out at the end of the year that you're only going to get a fraction of that. It blows my mind that this doesn't scare more people.