God is a jealous God, and He would have Israel to have no other gods before Him. Israel had lived under the influence of Egyptian life, customs, worship practices, culture and lifestyle for in excess of 400 years. God brings them to the foot of Mt Sinai and introduces the beginning of their detox program – their spiritual and communal realignment.
“Getting Israel out of Egypt and getting Egypt out of Israel.” Shepherd
In the Ten Commandments God is saying to redeemed Israel post Egypt – “This is how you will live, do relationships, live in community, worship, be my people, be a witness to the nations…”