This. Being on equal-or-better footing acts as a deterrent. Same reason countries don't keep all of their warfare technologies secret, e.g. the DoD makes press releases about new technologies and will publish just enough specs for an adversary to figure out that it defeats some advantage they had thought they had.