But How?
It's caused by a class of chemical signals, unoriginally called chemosignals, that are found in human sweat, tears and possibly other fluids. The extent to which chemosignals affect humans in day-to-day life is still under debate: It's hard to measure this kind of thing accurately, because a lot of the time the influence of chemosignals is subconscious.
That's what's so weird about it -- even though the MRI showed different parts of the women's brains working depending on which sweat they smelled, in every case the subjects claimed they couldn'ttell the difference. Yet, when made to guess which was which (fear sweat vs. happy sweat, horny sweat vs. normal sweat), they were able to pick correctly (at least, at a rate better than chance). So it appears that a lot of what you just "sense" about people is nothing more than picking up chemicals in their fluids.
And make no mistake, these psychic nose-messages do affect us: Sweat collected from men about to go skydiving was shown to activate the "fear" sections in brains of people exposed to it. Women exposed to male fear-sweat also rated neutral faces as more "fearful" than when they were sniffing sweat unassociated with terror.
Source: http://www.oprah.com/health/Smell-and-Emotions-Nose-and-Brain-Sense-of-Smell/6#ixzz3SvgUgS9j