How does this apply to militaries and intelligence agencies? I can understand wanting a lot of government software to be FOSS, but maybe the software on spy satellites shouldn't be available to everyone.
It isn't just about security, it is about information gathering. If you give someone all the software used on and to communicate with your spy satellites, it reveals the capabilities of those satellites.
The development machines used to create satellite software are likely running Windows, but the satellites are more likely to be running a real time OS such as VxWorks, Rodos, RTEMS, etc.