idg. ghrem „tönen, dröhnen, grollen” >dt. gram, dt. grimm ;
The arrow ">" does not always mean an etymological derivation.
Sometimes it may be just a conjecture (even a refuted one), or an error.
Take the tree as a suggestion for lookup,