Accountability, Rule of Law, Due Process, all hamper the ability of cops to do as they please. They may get in the way of legitimate activities now and then, but it’s not a sufficient reason to do away with them.
To put it short: it’s not a bug, it’s a feature.