Bail exists to keep the defendant out of jail during the trial. So instead of the defendant having to spend several months in jail and only being able to leave to appear in court, he/ she can spend the entirety of the trial...