It's the same "sympathy" as in "sympathetic resonance" [0]. It has nothing to do with pity or the like.

[0]: https://en.wikipedia.org/wiki/Sympathetic_resonance