And state legislatures.
Most courts just make an extremely high bond.
In Kyle Rittenhouse's case, it was two million dollars! (for someone who had strong ties to the community, no criminal record, a plausible claim of self defense, and who had turned himself in a few hours later, after attempting to do so minutes after the incident.
Remember Bernhard Goetz and Kyle Rittenhouse.
Never turn yourself in.
Never confess.