There are many who voted for other reasons but those are far less vocal.
The attacks on the 'British' are just as dumb, since a lot of people (50%, plus a majority of the Scots and the Irish) are being dragged into this.
It's dumb beyond understanding, but it's a nice insight in how much of the lessons learned during the last two world wars have been forgotten.
It's a cycle - every 3 generations like clockwork. The generation that goes to war comes back swearing "never again", their children grow up hearing war stories, but everything is going well around them as they grow up. Their children's' children have long forgotten the lessons of conflict, and proceed to uproot the trees their grandparent planted. Rinse and repeat.
To be fair, we continental Europeans have been at the butt end of patronizing hogwash and armchair economical and ethical advise from our Imperial friends from the island, so a bit of a role reversal is appropriate.
Also, I found countries keeping rich royals around a bit suspicious to begin with.
OTOH i think most europeans do not consider britain racist relative to some continental countries.