I don't think he deliberately set out to like her, it just happened. It has happened to me but I've never followed it up, choosing to stay with my wife. If it's a co-worker, it's hard because you can't avoid them.
Many people like attention from others even if they have no intention of following it up. In my opinion, it's a dangerous game to play.