A humidifier adds moisture to the air, which can help prevent the nasal passages from drying out, reducing irritation and facilitating mucus drainage.