We did, in 1998, in the Public Interest Disclosure Act https://en.wikipedia.org/wiki/Public_Interest_Disclosure_Act...
And we made things a bit better for NHS Whistleblowers with the Freedom to Speak Up Review and and NHS Improvement (was Monitor) Freedom to Speak Up policy which is compulsory for NHS Trusts
https://improvement.nhs.uk/resources/freedom-to-speak-up-whi...
https://www.gov.uk/government/publications/sir-robert-franci...
I don't think we should make these things legal, personally, but I think they should either be legal so whistleblowing doesn't make sense or illegal and whistleblowing is encouraged.
Before RIPA we had a bunch of different public bodies using surveillance with little control over what they were doing. After RIPA they can still use surveillance if they follow the correct procedures, and some of the abuses were reigned in.
The police especially have strong powers to use surveillance.
If we as a nation want those activities, then we should make them legal and clearly defined. If not, then stopping those activities from taking place hardly sounds like "treason".