You either can get paid in pure salary and have a lower ceiling (because you're paying for less risk) and then be left out when the company does well. Or you can get some stock with a higher ceiling/lower floor and be screwed if the company goes down the drain. Either way you're not forced to take equity... developers are in demand.
This is before even considering about trying to align interests of the employee with the company..