That's nonsense, he was elected President because enough of the right people voted for him. He could very easily have done things to piss them off and then would not have been elected President. Just because his election didn't fit in with your mental model of how politics works, doesn't mean that it didn't fit in to any model. It did, it just wasn't yours.