Both males and females mount and hump, and these behaviors first appear early in a dog's life, particularly during play.
Mounting and humping should not be considered abnormal behavior patterns.
For some dogs a new visitor to the house could elicit a mixture of excitement and stress that could make for a humping dog.