Designed to trap particles and germs from entering when you breathe. I believe this is why you get congested when you are sick. It's the body's own natural defense against germs, just as a fever tries to slow down the spread of a virus (by making it too warm for the cells to reproduce).
EDIT: Whoa, didn't even read realityisterror's post before writing this, must be on the same brain frequency!