We do have things like the Freedom of Information Act in the US, and I think a lot of European countries have similar laws. Yes it isn’t perfect and could be enforced more evenly.
But obviously, if you work for the military there is information that needs to be kept secure…