RDS is primarily caused by a deficiency in surfactant, a substance that helps keep the lungs inflated. It is more common in preterm infants because their lungs may not be fully developed. Surfactant replacement therapy and mechanical ventilation are common treatments.