When a conversation ends

Why do they say the other person name to finish the conversation? I was watching JW1 and the cleaner's boss finishes the conversation with John calling him by his name