Name is a form of identifier of a person and it's easier for our brains to remember "This was John" than "This was that tall guy with dark hair and blue eyes". The other reason is that it's usually kind to exchange names when one has a chat with someone else.