There could be several reasons why your dog is scratching his legs. Some common reasons include allergies, skin irritations, parasites (such as fleas or mites), dry skin, or even boredom or anxiety. It's best to observe your dog's behavior and consult with a veterinarian to determine the underlying cause and appropriate treatment.