Judges are elected in many areas of the US so they're potentially literally some rando in a robe who wants to put "bad guys" in jail, not some master of critical thinking.
Yeah, and the other way you get judges is via appointment. So there's a chance you have a hack that put in because the executive leader likes their politics.