There is also still a concept of national service in such places. Even as a civilian, some people would rather design systems to protect their county than design systems to support real estate in the metaverse. Do you want to do data analysis to catch terrorists or track international drug shipments, or design another algorithm to better serve ads to elderly people needing regular diabetic testing supplies?
Edit: I also want to point out that there are many tech jobs available in the government sector (state / transit / local / etc). They generally pay less, but are also less restrictive. You don't have to sign up for an intelligence service (and everything that means) to serve your country.
A few months back the US Navy's CTO asked LinkedIn why technically-talented people were leaving his organization and hundreds of people flocked to the comments to answer him [1]. Based upon some of the replies there are secondary considerations that override the concept of "national service" and stop people from working in this space.
[1] https://www.linkedin.com/posts/don-yeske-b7957510_peoplefirs...
Not to mention that those nominally earning more in SF/SV often have worse quality of life than those earning less elsewhere due to housing prices and overall cost of living.
Also, low cost of living is great. I have a fully work from home position so I could move to a lower cost of living location if I wanted. That kind of flexibility is unusual in government work in my experience.
Edit: Also - I wasn't saying the pay was bad, or that 200k was the max you'd get - I was saying it comes with a work culture you might not like. It's not a situation where the pay is so much better in return for restrictive culture.
If you have tech skills and a clearance you could probably bill around 200/hour for full time work which would be pretty healthy income.
Edit: article I wrote about the topic:
https://blog.clearedjobs.net/leveraging-your-clearance-to-be...
I would also point out that, historically, a lot of "startup" culture comes directly from people fleeing from the more conservative east cost workplace culture. Consider if you can get the life you want working for a security service.
Obviously making between 100 and 200k is a healthy salary, but we shouldn't pretend that it's at the top of the industry. You're agreeing to a very particular work culture in return for middle-industry compensation.