Exactly. You can also look to Frankfurter’s comment in his dissent in United States v Rabinowitz that “it is a fair summary of history to say that the safeguards of liberty have been forged in controversies involving not very nice people.”
It’s a side effect of the legal system. The average decent Joe or Jane on the street never gets a court case that can be pushed up to the appellate level for a binding precedent. What, every so often the police barge into the wrong place and then decent people might bring a case because they got hit? But criminal cases with unsavory people abound every day teeming in orders more of magnitude.
Anyhow, honoring law in cases like this is scarcely tantamount to winking at bad social problems like child sexual abuse.