ACS work by promoting the maturation of the fetal lungs and other organs. They stimulate the production of surfactant, a substance that reduces surface tension in the lungs, thereby enhancing the ability of the lungs to expand and contract effectively. This is crucial for preterm infants who often lack sufficient surfactant, leading to respiratory issues.