I remember when I took a govt job some years ago, big tech and startup friends (where I spent all of my career, earlier) found it puzzling.
As a married queer immigrant on a single income (45 made it impossible for spouses to work), I have 0 tolerance for risk in this country where healthcare is tied to my job.
However, I also found meaningful work; and working for city or states or federal govt is often a key way to get good benefits and a pension.
https://archive.ph/2023.11.15-144654/https://www.wired.com/story/tech-jobs-government-layoffs/