In America most people are never declared guilty by a judge, they get held in jail until they give up and agree to the prosecutor declaring them guilty instead.
Juries, not judges, declare people guilty in the US. Prosecutors don't declare people guilty either; what you're talking about is people taking a plea bargain and pleading guilty. Bail reform can help take the pressure off of people to falsely confess to get out of jail, and we need more of it.