Airway obstruction can occur due to swelling, foreign objects, or anatomical abnormalities. In the context of swelling, it is often caused by severe allergic reactions, infections, or trauma that leads to an inflamed airway, making breathing difficult.