Looking at salaries, senior developers working for the government get paid about the same as entry level software engineers who get return offers at BigTech. Well actually senior developers in government only about 10%-20% more.
And even if you did work in pub sec, if you were good, why would you want to work for the government when you can get paid a lot more working in the private sector and consulting for the government?
I know how much senior cloud consultants working at AWS make working in the WWPS. I was there as an l5. Amazon is a shitty place to work. But I doubt it’s any worse than the government right now. GCP and Microsoft (not just Azure) both also pay their consultants a lot more than government employees make.
I’m not saying the government isn’t needed. But the best and the brightest aren’t going to give up the amount of money they can make in the private sector - especially now that government jobs are far from a secure paycheck