Secondary benefit
A hidden, unconscious psychological or social “benefit” of an illness, difficulty, or suffering that prevents one from getting rid of a problem or changing behavior in order to recover, even if a person consciously wants change or recovery.