As Sir Humphrey says in Yes, Minister:
The Official Secrets Act is not to protect secrets, it is to protect officials.
[1] https://anilnetto.com/governance/accountability/come-on-guys...
This one doesn't have that quote, but I couldn't stop laughing when watching it: