It used to be that fast food chains hired teenagers because they could pay them less, and in exchange the kids got to feel like adults usually for the first time, even if the environment was dubious.
Startups are running a similar game, only the skills needed are rare enough that the price tag is sky high compared to ordinary jobs, and only because there really have been a few unicorns and the calculated risk of investment in these sorts of salaries is potentially worth the gamble.