People sometimes use this phrase to refer to kids who are shy. If you're shy, sometimes you keep to yourself and don't interact much with others. Keeping to yourself is kind of like a turtle hiding inside its shell.