I tried doing some research on this for you, but there doesn't seem to be an exact reason.
Although I think it might be so that you can identify a given TM in your bag. In the original Gen 1 games, there doesn't seem to be enough room for text to spell out the name of the move that the TM teaches, so they had to number it instead.
The best image I could find for this is this one