ELI5: Why can adults go on kiddy rides with smaller children, but older children can’t go on kiddy rides because they’re too tall?

Is this a safety thing or what? It’s been on my brain for a long time.