Caterpillars become a messy goop inside the cocoon before they become butterflies, which is the metaphor used to describe growing up and learning about life