I've heard a lot about conditional grammar and how the word 'would' plays a role in those structures, but sometimes I run into this word out of conditional structures. For example :
A: I told her a lie about my family.
B: Why would you lie about that?
I'm confused in understanding such usage of "would".
Could you explain to me what kind of structure this is ?