These things are complicated, but Brexit was basically driven by old people with a desire to return to their imagined past. How, precisely, Brexit even in some ideal form would do that is never quite specified, but the Brexiteers channeled that longing into that referendum and here we are.
Also, Trump.