I would argue that, in the US at least, criminals winning on technicalities is not a side effect. It is a direct punishment of the government not following proper procedure. Authorities cannot illegally search your home because if they do they forfeit the right to use that evidence. If that repercussion was not in place, there would be no incentive for the government to actually follow the law.
Do it right or you lose the case. That's the deal.
Do it right or you lose the case. That's the deal.