The role of user experience (UX) designers is to create an optimal experience for the user when they interact with a digital or physical product, such as a website or a coffee machine for example.
Some focus on designing the service itself, such as designing the overall experience of using public transportation or going to a doctor.
All that matters mainly to the user experience designer is studying the user well, understanding his behavior, and designing his journey that enables them to achieve the required action with the least possible effort.