Superdelegates. They are supposed to make their votes when things are nearly settled. As a collective, they voted for Hillary before the contest even started, which gave people the impression that Hillary was winning.
This is like a judge giving their opinion, before letting jurors discuss their decision.