I think its possible that there's only one massive "soul", or consciousness, that exists beyond our current understanding of spacetime.
As beings are born into our reality a portion of this oversoul is put into the living creature, so that it can experience what the physical world has to offer. This happens countless times, over and over, until the soul has experienced life from every living thing's point of view.
Because the oversoul is beyond space and time, it can be in all living beings simultaneously, all beings that have ever lived, and all beings that will ever live. This is the meaning behind the phrase
"namaste", which can be translated as "the divinity in me recognizes the divinity in you".
See also
"The Egg" by Andy Weir (although there is an additional bit of speculation about what the point of all this could be)