In an ideal world, what you said would make sense. But unfortunately many governments and judicial systems around the world are corrupt and they misuse their powers - they have and they will. There is a reason most countries have laws against unlawful search and seizure. Otherwise going by what you said and assuming the judiciary is incorruptible (which is almost probably never by the way), why would we give citizens rights against the government?