To be nominated and then elected, perhaps he felt he needed to maximize his media exposure by drawing attention to and differentiating himself from his GOP primary opponents and then Hillary Clinton. What if he said all those things simply for the sake of exposure and publicity? He certainly got everyone talking about him.
James Carville on MSNBC, who knows a thing or three about political campaigns, said that almost everything that any candidate says during a campaign is BS.
Perhaps we'll never know the truth, but is our next president smarter than we think?