Your shrimp obviously was sleeping with the clownfish.
That or you have two other options. It came in with eggs or produced them. Either way, with no one to fertilize them it is carrying around eventual fish food...and most likely even if they were eventual fish food.