Caterpillars metamorphose to reproduce. Caterpillars do the eating and growing big from a tiny egg part of the life cycle, the butterfly does the breeding and egg laying.
It's a very common mode in nature, especially among insects. Think maggots and flies, etc.
Egg, larva, nymph, pupa, adult. Sometimes skipping one or some.
See
WikiAnd here is the
pretty Ladybird