We are 'other-conscious' before we are 'self-conscious'. [How does the activity of neurons give rise to the sense of being a conscious human being?]
I'll provide my view on this question.
The neurons are interlinked and are activated accordingly by internal (genes, etc.) and external (people, scenarios, etc.). That provides the individual with self-awareness & other-awareness. The variables are nearly endless, so answers are mostly, if not all, opinionated.
The above view can be explained philosophically, but I don't have the right words to elaborate on.
I'd be glad if anyone can object my view reasonably because I am hoping for a better perspective than that.