Well, the thing is, technically speaking in-universe there's two parts to the soul. There's basically just life energy, which is stuck in a body and makes it live, and then there's the consciousness, which begins existing when the body is actually capable of thought and is what actually constitutes a ghost and is what actually goes to whatever's beyond the veil.