Something made by the military to be consumed by only them probably doesn't need to be open sourced. Same thing as if you write a program for yourself that only you use. Once something is intended to be consumed by the public, it should absolutely be open sourced. Voting machine software, tax filing software, etc.
I agree though, I just don't think it's an absolute rule. Voting machines and other stuff that the public uses probably should be.