I believe it is because they are collective nouns.
"One number with three digits", is restated as "A three digit number".
It is like "One classroom with six students" can be restated as " A six student classroom".
"A difference of seven hours" turns into "A seven hour difference"