Worms was a name for the race of Dragons, and especially those wingless kinds (such as Glaurung himself) who crawled on the ground.
Inspiration
Worm is an actual old word for dragon,[1] derived from Old English wyrm, Old Norse ormr ("serpent").
References