Often an untrimmed nail can be to blame. If he is licking both legs, he might have itchy skin caused by a food allergy, especially if you've recently changed his food. ... If everything checks out, then the most likely cause of the licking is boredom, habit, anxiety or a way of self-soothing.