We know that the EU has not benefited  the low-paid and poor and that it has benefited the wealthy  and we'll educated, so there it should be easy to understand  why the low paid voted against the EU and why the rich and we'll educated  voted to remain. 
The EU was set up to bring in line poorer EU countries, to the economic  prosperity  of the UK and Germany. It has not worked, even though  hundreds of billions were thrown at the pan European project. Germany and England were expected to pay the price of this project that hasnt  worked. It was paid for by the low-paid  in the UK and Germany. The wealthy and we'll educated  have enjoyed prosperity  and have not had to pay the sacrifice, to pay for that failure. Now the EU is throwing hundreds of billions at new EU countries in the the east of Europe. It was the low paid, who again would have to see their living standards decline, to pay for the new project. 
Is it any wonder that the people who have paid the price for the EU failure in trying to enrich southern EU countries , that when they are given a referendum, vote to leave?
The EU has been good for the wealthy and we'll educated in the UK, I can understand  why they voted to remain, they are happy that the poor  and low paid  have to foot the bill, with lower living standards.