So you posit that humans are solipsistic by default, but some (most?) develop more and realize they’re not the only conscious being out there?
Any leap beyond that is based on empathy. You have a soul, and you are human, therefore other humans could have souls too. It's a spiritual belief. Answers to questions that cannot be answered.
Developing theory of mind is one of the key milestones in child development.