Atelectasis occurs from a blocked airway (obstructive) or pressure from outside the lung (nonobstructive). General anesthesia is a common cause of atelectasis. It changes your regular pattern of breathing and affects the exchange of lung gases, which can cause the air sacs (alveoli) to deflate.