Questions like "how could God do this?" are good to have. These kinds of questions come from a place of strong faith. When we can't line up our situation with the goodness of God - it's good to bring those questions to him. Though evil, sickness, and pain exist for now, God ultimately works all things towards good.