Your answer is that, in your mind when you listen to another being that is bored your mind senses this boredom, and reacts to it , just like when the brain tells you to yawn, when you see another person yawn.
I hope this helps, Have a nice day.
8.1m questions
10.7m answers