The difference is that when you are riding at a certain speed in still air, everything, the pavement, the air is going by you at that speed. With a headwind, there is a velocity profile to the wind with lower wind closer to the ground. Measured at the surface of the road, the wind speed is always 0. You are not necessarily experiencing the same effective wind profile.