Sadism and masochism are said to be two sides of the same coin.
被虐心 means masochism, the counterpart to 加虐心.
Sino-Japanese compound: 加 (add, inflict) + 虐 (oppress, torment) + 心 (heart, mind). The exact historical derivation is uncertain, but the term is constructed to express a sadistic psychological disposition.