What are the ethical and legal implications of making marriage a condition for bail in criminal cases?

The Supreme Court has set aside a High Court order that suggested an accused should marry for bail. I am curious about how such conditions affect individual rights and the justice system.