Preterm delivery has several causes. Sometimes a woman goes into labor early for no obvious reason. At other times there may be a medical reason for early labor and delivery.
https://www.healthline.com/health/pregnancy/third-trimester-preterm-delivery

