Teratomas develop from pluripotent stem cells that have the ability to differentiate into multiple cell types. During normal development, these cells are tightly regulated to form specific tissues. However, in teratoma formation, this regulation is disrupted, leading to the growth of a disorganized mass of different tissue types. The exact mechanisms behind this dysregulation are not fully understood, but it is believed to involve genetic and environmental factors.