#Why did Joshua tell the people to tell their children what Yahweh had done for them at the Jordan?

Joshua told the people to tell their children what Yahweh had done for them at the Jordan in order to for all the peoples of the world to know that the hand of Yahweh is mighty. [4:24]