God preserved Israel’s history in Scripture for the church,
“And do not become idolaters as were some of them. As it is written, ‘The people sat down to eat and drink, and rose up to play’” (1 Corinthians 10:7).
They committed idolatry and thought nothing of it, until God punished them for it. He had delivered them from Egypt, but when they ascribed credit to a golden calf, they insulted God greatly.
That is what idolatry is. It is an insult to God. Do you think it is a good idea to insult the Creator of the universe?