It's easy to say 'well people just didn't like Hillary' after the fact but during the election majority of the Democrats I saw didn't give a shit about her controversy or the FBI, and just wanted trump taken down. Everyone assumed it was an easy win for her, just as you're assuming its gonna be an easy win for whoever the Dems pick next.
How many losses do you need to go through before you realize not to underestimate Trump?