Bail money isn't used to keep people in jail. It is returned to you after the trail. The only time the government keeps the ball money, is if the person fails to show up in court.
The problem is, the average person doesn't have a lot of assets. Most people can't afford the ball, and many can't even give something to a bondsmen.