In the book snowcraah by Neil Stephenson the main character is named “Hiro Protagonist”. Yes it’s a real book, and one of my favorites, by a real author.
The difference is that’s trying to be stupid and funny. Rowling is just, I don’t know, lazy, or uncreative, or racist. One, or multiple, of those at least.