It could be from excitement - if it is you need to ignore it or you will make the problem worse. He may grow out of it. Just warn visitors
He could also have an incontinence issue. Ask the vet about it next time you go. They have meds to help with that.