This is because the Leave vote was a protest by a huge range of people against modern Britain:
the Left Behind who can't compete in a global market, some wanting to strike at the successful mc, those wanting to end austerity, English / British nationalists, wealthy boomers who want the world of their youth back, the JAMs, ideological hard-left and hard right who wnat to remake the country
I am one of the 'Left Behind', am of no fixed abode, am of the opinion that austerity is badly damaging the economy and will continue to do so, therefore by those measures I should've voted Leave. But, I looked at all the things the EU does, all the regions that get grants for infrastructure projects, FOM for DCs and the freedom to work in any EU country and voted Remain.
My XW, a nurse, voted Remain; her partner, a builder, voted Remain. They both think their respective jobs will be made worse should their foreign colleagues decide to leave.
I do agree BCF, that the Leave vote was a big Fuck You to that smug twat Cameron and Osborne's 'economic' plan, which seemed to me to consist solely of making sure house prices go up ad infinitum, locking many of us out of either buying or renting property.