Though not all country codes point to a country. See .eu, .ac .su as different examples of stuff that breaks the rules.
And that's before we get into the really weird not-a-proper-country ones like .im or .pn.
At the time it did not break the rules. It's breaking the rules now because by the original rules it should have been phased out. What makes it survive is a special arrangement.