UX concepts are applied to visual elements of UI such as icons, buttons, screens, layouts, designs, and other series of elements to initiate emotional connection and association.
Whereas UI creates the physical components that a user interacts with page like page using buttons, and menus. You can consider that UX is an emotion (intangible) and UI is a person (tangible) with whom you interact.