In general, the Bible reflects the history of a gradual humanizing under God's Law of the customs that prevailed in most cultures, which had arisen as a result of fallen nature.
Either it is a record of the gradual humanizing of God, or the Bible is the work of man (perhaps inspired), reporting their gradual evolving ideas about God. For the God described in the Bible is clearly evolving over time.