Actually, you can; I wrote that feature all the way back in Warcraft 1.
Select a group of units. Press Ctrl+# (where # is 1..4 or maybe 1..9; I can no longer remember) to bind that group of units to that number key. Then press the # key by itself to select that group.