because with in the nasal cavity, very fine hair and mucus secreting cells that can trap the dust or microorganisms that can enter through the air we inhale .
secondly the moisture is added by the nasal cavity to make incoming air humid and temperature of incoming air is adjusted as per our body temperature.