Its not out of the rhelm of possibilities that it could have to do with magical energies but its far more likely that you could just be starting to have feelings for him.
There are what scientists/psychologists call non verbal cues (body language, pupils dilating, scent glands activating, hormones, pheromones, etc) that you, or he, could have picked up on subconsciously that attracted you to him or him to you.
On a more spiritual/metaphysics level, its believed that everyone and everything has a natural vibration (or resonate frequency) in which it/they tend to viberate at on a molecular level. If two people are vibrating at similar frequencies than their bodies would be able to recognize this and they would feel a quick connection... kinda obvious why the saying "We just vibe" (and similar sayings) seems to make sense in this context, huh? :)
Take it slow, get to know him and find out for yourself the reason behind it... that's one of the reasons we are in this existence... to enjoy heart warming feelings like that. :0)