There is a debuff resistance mechanic that affects all targets both players and enemies alike. if a target is susceptible to a debuff (Like sleep) after being under the effect of the debuff it'll build resistance, while not under the effect, it will gradually loose any resistance it has built up.