There is some differences between bail and bond, but basically the same thing. Is a payment that lets you out of prison until trial under conditions. If you break conditions, payment is forfeited, but returned otherwise
This is because time to trial/actual trial itself can take a long time and there is generally dislike of keeping a person in confinement on the chance they are innocent.