Even though human beings sinned, God does not just say, “Hey, you! Why did you sin?” He knows the state of people who sin.
If God is all-knowing and all-powerful, God should make an ideal world and revive His children.
If saving the child is even remotely possible, the parental heart will seek out the way, even a hundred or a thousand times.