Moses gives speeches about laws and the importance of following God before the Israelites enter the Promised Land.
So that you don't forget, when you have plenty of food and are comfortably full, and have built beautiful homes to live in, you still remember this.