He didn't really. Hillary was just such a unpalatable candidate that she lost the election. Look at the turnout data and you will see. Trump didn't do anything special.
That's actually wrong to say Trump didn't do anything special. Trump had almost 63 million votes which is more than Romney's almost 61 and McCain's almost 60.
Hilary had 65.8 million which was almost exactly what Obama got in 2012, 65.9. To say that Trump did nothing is the same narative that Bernie supports started blaming Hilary supporters for losing. It's always the people that vote at fault and not the people who didn't vote.