I know I live in cloud-cuckoo fantasy land here, but I know plenty of developers that would love to work on projects for the civic good, but they don't because they also want to earn good money so that they can live comfortably, raise a family easily, etc. etc. So they go and work for Facebook and Google, etc.
There's an inbuilt assumption that government can't or shouldn't ever compete with tech giants for salary. But look at the incredible sums of money wasted on contracts with borderline useless consulting shops. You can't tell me that money wouldn't be better spent on hiring smart developers and project managers and just getting stuff done.
I know it'll never happen, but a developer can dream. There's no actual reason why it couldn't.