YHVH is a good Father to us. He not only gave us instructions on how to live, but also practical examples through the lives of other people who went before us. It started with Adam and Eve in the garden. Through their lives and those who followed after them, we learn what YHVH likes and what is not acceptable to Him. Through narrative, He teaches us.
The Exodus from Egypt and the Israelite’s journey through the wilderness is an especially good example of this.