Harry Potter succeeded because of its characters and relationships. But Harry Potter did not succeed because of its imagination.
I've spoken in depth in the past about why I don't like the Harry Potter books. All of it can be boiled down to a single statement:
The characters of Harry Potter are unaware of their own universe.
But I stumbled on a more authoritative way to say this, in terms of Brandon Sanderson and his "laws of magic."