Hollywood calls it resonance.
In storytelling, resonance describes the emotional connection between the audience and a fictional character - mostly the hero. But resonance can make us empathize even with the monster. It arises at the moment when we understand his motivation and recognize something of ourselves in his story. For example the painful experience of being in love with someone who is beyond our reach.