@freemo well, think about yourself. Do you ever find yourself speaking a different way around certain people as a conscious or unconscious way of relating to them, especially as a positive way of matching them, showing kinship?
I think that happens to a lot or even most of us.
We codeswitch as a way of engaging with other humans.