The iPhone XR is not 5G compatible. The only 5G phones Apple has are the iPhone 12 & 13 series. As far as what T-Mobile will support, that is their business decision, and if you wish to remain with T-Mobile, it would seem they require you to have a 5G capable iPhone.