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.