One of the more ridiculous considerations to open-sourcing the code is patent liability.
It's nearly impossible to develop complex software that doesn't infringe upon dozens of nonsense software patents. The gov't and its contractors would be a huge target.
One dysfunctional bureaucracy scared of the policies of another dysfunctional bureaucracy.