They would have to believe in the mission,
both to take the “passion project” salary compared to private pay,
and put up with watching the incompetence and/or malfeasance around them.
Anecdata, but I know plenty of people like this. Sometimes you have to eat your veggies in order to qualify for dessert.
It’s true, but there is significant wiggle room for pay and you can also have equity in your contracting company if you go private. Lots of above-board options and probably a bunch of classified authorities that I’d have no idea about.