God exists and the world is shit because we were given free will and a world to test it.

At least, religious texts would have you believe that is the way to reconcile the "because the world is shit" argument.