About nine thousand years ago, a play was written with the same theme we are seeing all these years later: Why do bad things happen to good people? That play is in the Bible, the Book of Job.
Ancient man's reflections include these:
God does great things past finding out,
marvelous things beyond reckoning.
People recognized that God's ways and works encompassed matters far beyond their ken.
Should God come near me, I see him not;
should he pass by, I am not aware of him;
Should he seize me forcibly, who can say him nay?
Who can say to him, "What are you doing?"
People had an awareness of their own limits, recognizing they often could not see God even when He is near. Further, if they did have this awareness and feel His force, who, then, would even have the power to refuse. No one would even be able to bring forth their own freedom of will to whisper, "What are you doing?" Ancient man recognized the great separation between God and man--and the reason for it.
Later, it would be Moses who noted that God is best seen in hindsight; that we are blinded when He is directly in front of us.
If I appealed to God and he answered my call,
I could not believe that he would hearken to my words.
Ancient man had just as much inclination as we have to attribute answered prayers to coincidence, and then wonder, "Was it really a coincidence?"