The books have some really problematic themes that add up over time. If HP ended with the first book, they would be a curiosity, but they add up and JK had a really crooked world view when she wrote them. It’s likely her editor soften them in the beginning, but they had less control as they got more popular.