There can be a number of reasons. Usually, it's an attention-seeking behaviour you've unwittingly been rewarding with your response (dogs will even show preference in the humans they hump, according to who gives them the best response!). But it can also be an indication of inconsistency in your interactions with the dog, or occasionally, it can be caused by a medical issue
