Infants and toddlers often accompany their mothers to prison, not because they have committed any offence, but because there is nowhere else for them to go.