I think there were hints of Willow's affection for Xander in the first season. Xander clearly had the hots for Buffy, and that saddened Willow. You could argue that it's because Xander is being less of a friend for pursuing Buffy, but the unrequited love angle works just as well.