In the United States, when someone has been arrested for a crime, he is considered innocent until proven guilty.
If the crime is a serious one such as murder, of if the person is a risk to others or himself, or has the probability of fleeing, he will be put under arrest until his trial can be arranged.
However, most people who are arrested may be allowed to leave the facility until their trial, as long as they give the court a cash payment as a promise that they will return for their trial. The judge determines the amount based on the severity of the crime and the likelihood that the arrested person (defendant) will return.
(Source: http://goo.gl/TAhloU)