It does not mean that the accused are free. They still have to go through the trial and will have travel/movement restrictions and ofcourse they had to pay to post a bail bond.
This is perfectly legal and proper procedure in any judicial system. The judge is following the law of land. Moreover, the accused is innocent until proven guilty in a court of law.