Hamas don't speak for the Palestinian people, they speak for the Muslim Brotherhood.
The Israel-haters declare Hamas the "voice of the people" when they want Israel to cave in to its demands, and a "dictatorial clique" when they want to distance its murderous thuggery and ideology from them. But the truth is the Palestinians openly and knowingly voted for a murderous terrorist Islamist organization as their leaders.
Of course the next thing it did was to kill all political opponents and cancel all future elections (apart from the meaningless one-party predetermined-results kabuki theatre), but that is rather typical of the kind of "freedom fighters" the Israel-haters support elsewhere in the world (Cuba, for instance), and somehow they don't claim those regimes do not represent the people...