Think about this for a minute or so. “Moses then told the Jewish people that, in the final analysis,G‑d is presenting them with the free choice to choose between good and evil.
[Moses told the Jewish people,] “Behold, I have set before you today life and good and death and evil. Choose life!” Deuteronomy 30:15
It is not always clear that good behavior leads to blessings and life and that bad behavior leads to curses and death. This allows us the free will to choose to be good. If it were always clear that good behavior leads to blessing and life, whereas bad behavior leads to the opposite, what choice could we have but to be good? The very fact that being good does not always lead to goodness both forces us and enables us to base our relationship with G‑d on a more profound basis.
For this reason, on a deeper level, G‑d (through Moses) is here asking us to be good for its own sake, rather than for any expectation of material reward, even when we do see clearly that being good leads to good results.1 Likutei Sichot, vol. 28, p. 82.