She was working for Amnesty international when she came up with the book idea.
And the books are filled with examples of the need for human rights. She had clearly spent a lot of time on the topic, and cared enough to make them a core part of the books.
Sirius's lack of a trial, the forbidden curses (torture, slavery, death). Rita Skeeter and Dolores Umbridge taught me about media propaganda and the creep and pomposity of authoritarianism.
Yeah she wasn't great at follow through but in the early days, the hope was there.
Also, they're kids' books. They're supoosed to introduce concepts to the reader, not analyse or prosthetylise over them.