Things are getting a bit wild since the pandemic but prior to 2020 we only had a handful of tech IPOs per year, for every Uber there were thousands of promising failed startups.
That's why in my other replies in this thread I recommend only joining later stage startups that are backed by top VCs and have clear product market fit. At that point things are derisked and compensation is pretty competitive with larger tech companies.
When I was graduating I had an option to work at Google or be the first employee at a very promising startup. I chose the startup and worked my ass off, the company raised a ton of money and got too big to be an acquisition target but not successful enough to IPO. My friends who went to work at Google made 2-3x more than me in salary and their RSUs 10xed during that time, all of them have millions in the bank. I bounced around incubators and in the startup ecosystem and have not met many people who did better than an average engineer at FAANG, in most cases the ones that did were founders.
The only people consistently getting rich off of startups are VCs.
EDIT: I do have to admit that I enjoyed startup life and got to work on and learn things that I'd never get to at a large company.
EDIT: Also if you're set on startups I'd recommend working at FAANG for a few years first, saving up and then bootstrapping your own company for a year or two before you think about investors. Being a founder is a completely different experience than an employee, you hold a lot more equity and have much more control over things.