As far as God's concerned, he knows the end from the beginning and He sees a little baby and that little baby could grow up to be Adolf Hitler, he could grow up to be Joseph Stalin, he could grow up to be some serial killer, or he could grow up to die of a hideous disease. God sees all of that, and for that life to be terminated while he's a baby, he's going to be with God forever in Heaven so it isn't a bad thing.