Partial lung collapse. Atelectasis is caused by a blockage of the air passages (bronchus or bronchioles) or by pressure on the outside of the lung. It is common after surgery, or in patients who were in the hospital. Risk factors for developing atelectasis include: 1  Anesthesia.  Foreign object in the airway (most common in children)