So in a way, he did us a favor
An excellent point. And, interestingly, atheists do cause believers to question themselves, and usually to come away being glad they have their faith. The Lord works in mysterious ways.
The purpose of some people's lives on earth is to show other people what happens when they make certain bad choices.