> but so many people have a religious level hatred of public employees
Are you sure this is the issue here? Seems there are lots of regulations around how much public employees can be paid (usually too low for skilled IT), how easy it is to move or fire them, etc. Sounds much easier to just hire a contractor.
Even if you hire good contractors who work in good faith, the inability to have remotely technical discussions leads to all kinds of miscommunication and mismatched expectations.
Building and maintaining more in-house developers would be vastly more efficient for the govt, but so many people have a religious level hatred of public employees and glowing respect for private ones. So we not only end up in the current situation, it's actively being made worse in the US by the current administration.