Humping is a common behaviour in dogs. Humping in dogs is sometimes a playful behaviour and, particularly in older dogs, it can be a sign of dominance.
Portrait of a beautiful brown coated Cocker Spaniel
If your dog isn’t neutered humping is generally of a sexual nature. Getting your dog neutered is often a the best way of stopping it.