The momentum you carry due to your weight is what does the trick. Take a lighter rider and a heavier one into a head wind and stop pedalling and you will see it demonstrated clearly.
Also worth noting is that your clothing counts for a LOT when the wind is up. Loose fitting makes headwinds a lot worse than tighter fitting clothing