:v its kinda why I've come to apreciate hermeticism and spiritism, since those religions put value on living a good life.
In hermeticism, everything in the material world is evil, because it is corruptible, passible, movable and finite, even children, and only the realm of God is good, since only God is truly immortal, unmovable, imutable, incorruptible, etc; While Man is partially mortal (due to having physical existence) and immortal (due to having a mind/soul/spirit). Man is basically a minor god trapped in the physical reality, and the only way to free himself from it is by forgoing the vices of material life, the senses and generally being a good, charitable person, focusing on a spiritual lifestyle through the "strife of piety" and giving thanks to God, so that when you die, your mind lets go of the physical reality and ascend to the heavens.
But to do all that, you need to actualy live and pursue these things, so suicide/getting killed as a child basically screws up with your chances and forces you to start over by reincarnating.
Spiritism has a similar take on this. In spiritism your soul is in a constant process of evolution, and by pursuing a life of virtue and charity, you speed up your evolutionary process so that you may ascend to the next level of existence which is higher then human, but the process takes up several lifetimes so you're bound to keep reincarnating untill you've evolved enough. If you die as a child, you basically get stuck for a while, needing to heal for a bit before reincarnating again and continue the process.