Bail pending trial is only a criminal compulsory measure, which does not rule out the possibility of actual punishment. It's just that the statutory punishment in "shelter others" is fixed-term imprisonment of not more than three years, criminal detention, public surveillance and fines. Usually, probation is more likely.