If the government only used open-source software, the NSA could create patches that only the government would use, while keeping zero days that can be used against everyone else.
If the government started requiring all/most software to be open-source, it would create a market. There's no way big government vendors would refuse to create open source software. They would just shift to monetizing more heavily using consulting services, or support, or something.