Inmates incarcerated have the option to post their own bail or accept funds from friends or family for the purpose of posting bail.
Prosecutors usually move cases along more slowly when defendants are not in custody. As a result, witnesses can disappear and cases can get stale, so that bailed-out defendants often wind up with better deals. As defense attorneys like to say, "Justice delayed is justice."