One of those countries, Scotland, had the opportunity to leave the UK two years prior. They chose not to (a result I personally was disappointed by). But having chosen to stay, that also meant they had chosen to be bound by national decisions, at the level of things like continued membership of the EU.