Why Did god instruct the children of Israel to erect memorials?

To remind them and their posterity of his faithfulness