That's pure coincidence. Nothing in chat (or Q&A site) code is based on user names (or display names, to be precise), except for actually looking up the person who was mentioned in a comment or chat message. Unlike on many other sites, the display name isn't used as an identifier here (which has some fun consequences). Anything that isn't explicitly involved in parsing comments or chat messages for mentions only cares about numeric user ids.
I don't know what exactly happened here since it seems to have fixed itself, so it will probably remain a mystery.
What I can tell you with 100% certainty however (and I've been programming long enough to know that you should never do that) is that a display name similarity with a recently kicked user will never somehow cause parts the kickage to "spill over" to the other user.*
*unless of course a human makes a mistake and thinks "Hey isn't that the one that I just kicked? Why are they back? Let's kick again!" – but that's not what happened here; the Martin with Stack Overflow Chat user id 1007638 has never been kicked.