There are many goals of UI and UX design, but the three main goals are to create a user interface that is easy to use, to design a user experience that is enjoyable, and to create a visual design that is appealing to users.
Creating a user interface that is easy to use is one of the most important goals of UI and UX design. A user interface that is easy to use will help users to quickly and easily find the information or tools they need, and will minimize the number of errors they make. A user interface that is difficult to use can frustrate users and lead to them giving up on using the product altogether.
Designing a user experience that is enjoyable is another key goal of UI and UX design. A user experience that is enjoyable is one that users will want to come back to again and again. A user experience that is unpleasant can lead to users avoiding the product altogether.
Creating a visual design that is appealing to users is also an important goal of UI and UX design. A visual design that is attractive to users will help to keep them engaged with the product. A visual design that is not appealing can lead to users losing interest in the product.