Well, if Rowling really copied it to
that extend, she'd be sued for copyright.
It's very hard to make a story that doesn't resemble even a little bit some other author's book. And sometimes you unintentionally "copy" things. Many a time I've caught myself rewriting a scene or using a quote from some book when doing creative writing in English class. If I really think about it, I can detect "Tolkien scenes/characters" in almost any book I've read. So, personally, I forgive JKR for stealing some ideas from JRRT.