He did this because they did not obey the voice of Yahweh their God, but they violated the terms of his covenant, all that Moses the servant of Yahweh commanded. They refused to listen to it or do it.