The practice of worshiping gods shaped like crawling animals and other detestable creatures likely came from Egypt.
In Egypt, people often worshiped gods that were shown in the form of animals. By copying these practices, the people of Israel brought foreign worship into the Lord’s temple.