Also, the private employees when they retire get no health benefits and have to fund their own retirement from a 401k, whereas the federal employees have guaranteed health care for life and a guaranteed pension. The health care and pension alone are worth at least a few million if you live to a decent age.
Private: Can make it rich. Really rich, And on average probably make more money while working, assuming the same type of work. OTOH, if you don't make it rich your retirement may not be as nice as you'd like.
Public: Will never be rich. You can solve P=NP, factor large numbers in constant time, and create a revolutionary new UI that every loves, and you'll still get paid as a GS-13, but you'll get a level bump next time your promotion comes up. But when you retire, you'll be comfortable.
It's kind of like the same deal judges get. Almost all federal judges would make a boatload more money as attorneys. But they take the lower pay with job security, salary for life, and a different kind of prestige.
Or don't take chances. It's very common for bureaucrats to retire to become lobbyists, working for private industry at comfortable salaries in order to exploit the regulatory system for others.
Where? Serious question.
But even non-founders, those in purely technical roles. People like David Cutler or Jeffrey Dean or Amit Singhal. At virtually ever major tech company you'll find a continuum of these.
Go to the federal gov't and you'll see much flatter pay structure. I don't care how rockstar you are in the Air Force, you are never going to see Sergey or even Jeff Dean type of money. Never.
Obviously Gates and Sergey have a visionary/uber-architect role. Others like Sweeney, Cutler and Carmack are hairy-chested devs who checkin just as much code, if not more, than your typical senior dev.
And of course there's the gamut in-between.
And for a lot of these people, they don't even consider it a lot of money. I had a friend who made $10M after an IPO. I asked how it felt and he said, "For what? To become Silicon Valley middle class?"
Either you only know private tech code monkeys or have found the highest paying federal agency that no one has ever heard of.