More likely the shrimp molted and that's what you saw. Usually it works the other way around. The peppermint eats the anemone. If it was eaten by the anemone, it was just luck. I wouldn't recommend a peppermint in a tank with any anemone.