When treating someone badly makes him like you more instead of less, this is an example of something that is counterintuitive.
(comparative more counterintuitive, superlative most counterintuitive)
From counter- + intuitive.
counterintuitive - Computer Definition
Contrary to intuition, instinct, or commonsense expectations. See also normal.