I'm not entirely certain they weren't able to influence the hat somehow. It seems very weird that apparently every member of my family for generations has been in Slytherin.
I'd pay to see a talking stuffed unicorn decide the next president actually.