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.
7.5m questions
10.1m answers