RDS prevents the lungs from making enough surfactant, a liquid that coats the inside of the lungs. Surfactant helps keep the lungs open so that babies can breathe in air once they are born. Without enough of it, the lungs collapse and the baby has to work hard to breathe.