Stock options - private companies that give you options that aren’t liquid (usually) until an exit event at sone undefined time.
RSUs - a known amount of stock granted in a public company with a known vesting date.
I know people at those companies and they aren’t getting paid nearly as much at the senior level as even a mid level software engineer at one of the larger tech companies.
I have been on both sides and spent most of my time as an enterprise dev.