Crossing the border illegally is a misdemeanor. It’s very common for people accused of misdemeanors (or even low-grade felonies) to be booked then released on their own recognizance. Separation of parents and children is a deliberate policy choice, NOT one required by law.