There were several things going on. The base of the GOP saw that moderate candidates like Romney and McCain were vilified despite their being the paragons of character and centrist compromise. They got tired of losing for lack of fighting. Trump was willing to confront the biased media. Second the base was fed up with GOP leaders lip service and their failure to stand firm on their promisses.
<insert profound quote here>