A nice answer, but it still doesn't explain *why* God creates people knowing they will ultimately suffer terribly.
My wife had children knowing full well that it comes with risk. Children go through sufferings too numerous to mention and yet she still had them, not with thoughtlessness, but rather looking past what suffering they might endure, to what blessings they are to others, how valuable they are to society, when raised in righteousness.
And inspite of what suffering they have endured, my children thank her for the life she gave them. Most children, raised well, praise their own mothers and don't blame them for the sins of others.