The referendum was entirely the UK's choice and had nothing to do with the EU. It offered more concessions than the UK deserved (having already held numerous opt-outs) and they still called the vote.
One of the effects of Brexit is that EU popular solidarity has noticeably improved while the UK has gone in the opposite direction. That says a lot about Brexit.