Why were the people of Israel reminded about their time of slavery in Egypt and how Yahweh rescued them from there?
They were reminded so they would not force away the justice due the foreigner or the fatherless, nor take the widow's cloak as a pledge.