You'll no doubt be aware that the cornerstone of our legal system is the individual can do whatever they want without consequence, unless there is a law against it.
Conversely, the government and all of its agencies can only act within the law, and cannot act outside of the powers given to it by law.
If they get off on a technicality, surely it's better to let 10 guilty men go free than punish one innocent man.
Our legal system ain't perfect, but its as good a system an there is.