I think they set up a special protocol with Visa and Mastercard to allow this.
Yes, called Contactless Transit Framework. https://www.ukfinance.org.uk/policy-and-guidance/reports-pub...