Meanwhile, I left and am now making double, in some cases triple, what some of my old coworkers are making, all because I'm in a hotter industry infused with VC cash, not because I'm any better.
And I absolutely miss it and understand why some of those people don't leave. The problems you get to work on and the access to classified data and close collaboration with so many world class research laboratories is unmatched. You'll never get that level of intellectual engagement working for a web company until you're in one of the handful of moonshot programs staffed by PhDs, but you will get money, so I chose money.
There also seem to be some areas where highly skilled workers will take a pay cut to work on something they love. This of course leads to lower pay in that field. A common example is the video game industry.
Your previous job sounds like it might have been affected by both lack of a money printer and lots of folks who take lower salary because they love the work
Specifically, the point of geointelligence is we're trying to gain a long-term strategic advantage over all other enemy and competitor countries. To the extent we succeed at doing this, the government itself doesn't earn a profit from it. Everyone else does. We try to tax them in order to pay ourselves, but people don't like taxes and they frankly don't understand the ways in which spycraft is benefiting them because all that ever gets publicized are our failures. When what we do works, you never hear about it.
That doesn't conform to my experience (European / working in the industrial sector / hiring developers but not a developer anymore myself) at all.
Pay is mostly based on the sector you work in and the origin of the company you work for. You will have an incredible salary if you work for an American web company especially a big one. You will have a fairly good salary in finance which might become an extremely good salary the closer you get to trading. Meanwhile, some of the guys working with me were experts in sensors fusion, embedded development and highly available systems with decades of experience and were paid peanuts (that was in the defense industry). They all stayed out of a mix of loyalty and the conviction they wouldn't find something as interesting somewhere else (probably right founded from what I have seen).