There is an explanatory video on https://truelayer.com/discover/agentic-commerce/ that shows how it works:
The customer grants access to her account to the payment provider, who does not disclose any account information to the AI agent at any time. I grant permission like I always do via mobile phone (e.g. finger print). The payment provider is just there, because not every AI agent would want to implement connections to dozens of banks. This nicely makes credit cards unnecessary.
I think the EU does this with Wero.
I think the big thing credit cards provide and these mechanisms don't, at least in the UK, is that credit cards are covered by the Consumer Credit Act protections. That's the thing that means that for any purchase between GBP100 and GBP30,000 the credit card company is equally liable with the merchant, and so if for instance you buy a package holiday and then the operator goes bust you can get a refund from the credit card company. That doesn't apply for direct bank payments (because there's no credit agreement involved).
It's kind of a historical accident that this consumer protection is tied to credit cards as a payment mechanism, but that's the way it is and I think it means that credit cards are generally a better way to pay for things than other options as a result.