We are tested by God for us to deserve the reward that God wants to shower us with in the Spiritual Realms. Without our struggling to do what is right in this world we cannot receive the rewards that God wants us to have. Why is that? The Rabbis explain that it is because God created a world where there is a direct correlation between what we do and what we get.