God recalls when Israel came into the land out of Egypt and how He dealt harshly with those who would dare to touch His people, the first fruits of the harvest. Unfortunately, Israel became dissolute. The people carried on the religious ceremonies despite God not being in the ceremonies, and the people didn't even ask where God was.
The Israelites did not seek refuge in God when the nation was threatened; they sought protection from Egypt, who liked to exact a terrible price from their beneficiaries later. Jeremiah says that Israel's unfaithfulness is as bad as a prostitute's. Even the faithless Samaritans were not as guilty as Israel, who should have known better.