Why would the NSA need patents? I guess it is to prevent a private company from suing them if they come up with something first and somehow word gets out? That would explain why they are granted in secret and only published when someone else tries to patent it.
Probably recruitment. It makes a lot more sense when viewed from the perspective of a researcher who's considering whether to join the NSA.
None of us want patents, and the whole system is absurd. But at one time, it was considered prestigious to be named on a patent. And prestige is a powerful force. Part of the burden of working at a secret agency is that your work is secret.
NASA also files patents largely to ensure that technology that could benefit society isn't squatted on by a single company. For the most part they're free to license.
It's written that when someone files a patent and not granted. So when someone files an identical patent, the patent examiner revert the inventor with reasons that why his patent application can't go further ahead, like because of this patent of NSA.
So here, the patent examiner is doing what you are suggesting. He is citing a prior art and while doing so, they have to make the patent available for public.
I thought prior art only worked for published (prior) art? E.g. I can't claim I invented something before you if I never published/released my invention?