How does user’s emotion relate to ux?

I have been hearing a lot of emotional design and doing ux with user's emotion in mind. But how does this work and where does it fall under in the deliverables?