Barclays has chosen Dublin for its EU base. Barclays is the oldest bank in the world. As a British bank it will remain strong in the UK, but also needs to plan ahead after Brexit. Barclays is an international bank and needs to be able to operate within the European Union.
Any tax revenue that is earned in Europe is likely to benefit Ireland, not the UK.