I think posters claiming "everyone that disagrees with me is an ignorant moron" are missing the point on why this happened, though.
If you look at where the votes went, it's clearly not along party lines. This isn't a right vs left thing, or a north vs south thing. It's almost entirely an inner-city vs everyone else thing. Almost all of the events in the political make up of the UK since the recession can be seen through a lens of people outside of cities feeling like they've been left behind, ignored, not been appreciated and aren't represented by their leaders. Unless someone genuinely feels like the people of Scotland have some magic fairy dust that they put in the water that makes everyone there lovely and liberal despite having basically the same financial situation as the rest of the country, it's clear to me that the SNP have managed to fill a gap left by Labour wherein the people of Scotland do feel like their have politicians who understand them and represent them and know what it's like to be them. The SNP were then rewarded for this at the ballot box and the people of Scotland don't wish to rock the boat by voting out of the EU.
Those people in the rural communities in England and Wales that feel like they've been ignored do want to rock the boat. For some it's seen as about immigration and for others jobs and for others waiting times at hospitals or wage suppression or sovereignty or whatever other reason, but it fundamentally comes down to people being fed up of their voice not being heard and wanted to do something to make it get heard and bring about change, because they're fed up with a distant elite that doesn't understand what is important to them. So to people surprised at why this results come in (and it's surprised me, but to read this thread you'd think there'd be scarcely more than a handful of people that'd vote to leave), I think that's why. Dismissing all these people as idiots or ignorant or stupid or lied to by the press despite every major party's machine working towards a remain vote and half the media (including some of Mordoch's papers, by the way, so don't give me that shit) is missing the point entirely. This is a representative democracy and these people feel like they aren't represented. Quelle surprise.