Analogy #3:
God as Novelist
A novelist has a purpose for writing a story.
This purpose may allow bad things to happen to the main characters.
Sometimes we cannot tell whether the author is a good person until we see how the story ends.