Ezekiel 20:21 appears in the midst of God's charge that He was sending Israel into captivity because of idolatry and Sabbath breaking. There are three possibilities regarding Israel's Sabbath breaking:
They rejected God's Sabbath for another day entirely;
They polluted what they did have of God's true Sabbath by careless, self-centered observance; or
Most likely, it was a combination of both. Some completely rejected it, others treated it carelessly.
Whichever it was, it resulted in their captivity. Keeping the Sabbath day properly is a serious issue to God.