And then, the caterpillar decides to take its midlife break in its chrysalis, which is dark and gooey and solitary, but it's also where the transformation happens.
So at that stage, instead of having a new skin underneath it that looks like a caterpillar, the next skin is really the cuticle made of chitin of that chrysalis stage.