I think the fact that within Hogwarts there’s a lot of distaste for Slytherin and Hufflepuff shows some interesting insight into the wizarding community. Like, Hufflepuff represents hard work and fairness, right? But there’s the idea that Hufflepuffs are losers, sort of the proverbial nice guys who finish last. On the other hand, Slytherins, who represent cunning and ambition and personal drive, are seen as cutthroat and generally nasty and mean.
Ultimately, Hufflepuff and Slytherin are both rooted in philosophies on self betterment and achieving success in life, both in terms of being a better person and being a more powerful/wealthy person. The obvious question raised by Hogwarts student’s disapproval of both Slytherin and Hufflepuff is this: if it makes you a loser to succeed through hard work and fairness, but a cheat to succeed through cleverness and an attitude of doing whatever it takes to achieve your goals, how is someone in the wizarding world expected to gain power/wealth/status if they aren’t already born with it?