Quick answer: the exhaust fan is the only thing standing between your shower steam and every surface in the bathroom, and almost everyone runs it wrong. The Home Ventilating Institute says the fan should keep running for 20 minutes after you leave. Most people shut it off in two.
That 18 minute gap is where the moisture that swells vanities...