If he is just licking 'everything in sight' then I think he is saying 'hey, this is interesting, I wonder what it's like?' Also it puts is smell and saliva on the object (even if it is your leg!) so that when he returns he knows the smell and the thing is his and friendly.