UPI would be even better if it were easier for tourists to onboard and use it while traveling in India. The general mindset seems to be that there's enough domestic tourism that making things easy for foreigners isn't that important. I think that really hurts the country's economy.
My comment was more centered around the UX of UPI. But to address your point, there is a separate app for tourists called UPI One World, works as a digital wallet and the UX is similar.