This is developmental abnormality known as fetus in fetu in which a mass of tissue that resembles a fetus forms inside the body.
This type of teratoma is also called fetiform teratoma and is characterized by its appearance and the fact that the tissues are well formed. They often appear on the ovary in the form of benign or mature teratomas. They are very uncommon, though.
Suggested for you: Ovarian Teratoma – Can It Contain Teeth, Hair & Other Organs?.