So he abandoned them because they started to worship other/strange gods. Because of their worshiping disgusting idols, he became angry.