People need to remember the vote happened immediately after the EU migration crisis. Anti-EU sentiment was at a high all across the union.
I don't know why people act like being anti-EU was a UK thing, not a shared issue across several members. People should remember that before they shit on the UK too much.
Shit, France, Italy, the Netherlands, Hungary, and perhaps others had a similar or higher level of anti-EU sentiment at the time compared to the UK. It's just that David Cameron was the only one stupid enough to gamble on having a referendum.