 Rashi explained that Moses called upon heaven and earth to serve as witnesses in in case Israel denied accepting the covenant, because Moses knew that he was mortal and would soon die, but heaven and earth will endure forever.Furthermore, said Rashi, if Israel acted meritoriously, then the witnesses would be able to reward them, as the earth would yield its produce and the heavens would give its dew.