Which change in lung function occurs as a result of the loss of surfactant production in a patient with acute respiratory distress syndrome?