Adding to this, the public sector pays much more than the private sector (often 50% ~ 100% more). Have job stability, generous vacations and other benefits. Depending on where you are (federal, state or municipal government levels), you also have a special retirement plan that gives you 100% of your salary when you retire (the private policies are capped at around 4.5 minimum wages, for comparison a good dev in the bigger cities can get about 10~15 minimum wages).
And so we have many "lifers" in the public sector, and this kind of job is the dream for many people (which is terrible IMHO).