Well... you are comparing a book series written to appeal to children and teens (HP) versus a book series written to give adults west of the Atlantic, a substitute for cultural history and myths and legends, and written by a professor of Old English at Oxford (LOTR).

The HP books are written for fun. The LOTR books are written to fill a cultural void that Tolkien felt we suffered here in the USA.