Long stays were rationalized as better for kids, many of whom had chaotic home lives.