In my hey-days

a UI is designed and used to do a job.

a UX is designed and used to 'impress' people to do a job.

In a way we may transfer the concept of UI/UX to:

Some schools teach children 'what' to learn.

Some schools teach children 'how' to learn and feel good to be 'the' discoverer of knowledge.

;-)