The difference lies in how we conceptualize the noun:
- Computer code is seen as a continuous substance or body of work, like "writing" or "music."
- Other types of codes are seen as discrete units or systems.
It's similar to how we say "information" (uncountable) but "facts" (countable), even though they're related concepts.