I believe in reincarnation so I just think the 'soul' would move on to a better embryo/fetus. Im agnostic though.
Because they're learning they don't know better, and therefore cannot be held accountable.
but what if the child was destined for wrongdoing? surely god would already know this?