I would be willing to be that 90% of the population getting locked up do not have a lawyer on retainer and use public defenders. Which you must wait for one to be provided to you then wait for said representation to reach out to you. That’s days if not longer in jail just waiting. Unless you have money then you won’t spend a moment in jail. Yet again the wealthy have a different set of rules because they can pay their way out of anything.
Beyond this in some areas due to lack of funding & supply there aren't even enough public defenders. It can take people weeks to get one at all and the one they get will barely have enough time to represent them.