“Why does God test us?”
Regardless of your personal beliefs about the origin of man, it’s evident bad things happen to good people. The difference between a Christian worldview and a naturalistic one is that the latter offers no explanation for suffering and unpleasant choices beyond the luck of the draw. If randomness rules, then these serve no higher purpose than weeding out the weak. If God does, then perhaps misery has meaning.
I could offer all kinds of anecdotes and speculations in response to a question like this, but it’s one that scripture answers in plain language very early on. Who needs my opinion when we can read the words of the Holy Spirit through men like Moses and Job?