The main cause of RDS is prematurity. Infants born before 37 weeks of gestation are at higher risk because their lungs have not yet fully developed to produce enough surfactant. Other factors that can contribute to RDS include maternal diabetes, cesarean delivery without labor, and a history of RDS in siblings.