If I remember the law correctly, the kids can only legally be held in those facilities for a maximum of twenty days before being sent to live with a foster family, and during those twenty days, the facilities' employees are frantically trying to determine if the kids have any suitable relatives they can be sent to instead.