Caffeine citrate works by stimulating the central nervous system, which helps to improve respiration. It enhances the drive to breathe by increasing the sensitivity of the brain's respiratory centers to carbon dioxide. Additionally, it has a mild diuretic effect, which can help reduce fluid retention in preterm infants.