 It wasn't that the people had quit being religious. They were still very religious, but their religion was a man-made religion. You can go and read Jeremiah chapter 2 as the Word of God explains that people didn't just stop worshiping God. They were still very religious. It's just that their religion was an idolatrous, made-up one.