Human beings are hard-wired to crave recognition.
When we know that others are seeing us in a positive light, our brains release a few chemicals into our systems that make us feel good both physically and emotionally. This feeling encourages us to engage or move towards the source that triggered it.
In short, we move closer because we want more of that feeling.