The situation in South Dakota highlights the insanity of this. South Dakota charges a defendant $92 an hour for his public defender, owed no matter the outcome of the case. If a public defender spends 10 hours proving that her client is innocent, the defendant still owes the lawyer $920, even though he committed no crime and his arrest was a mistake.
Failure to pay is a crime. Someone who qualifies as indigent may be acquitted, only to be convicted of being too poor to pay for the legal services the Constitution requires the state to provide.