Yes something is wrong causing this abnormal behavior. He needs to be examined by a veterinarian. Common causes of inappropriate urination include urinary tract infections, prostatic disease, bladder stones, kidney disease, incontinence, and diabetes. He needs to have an examination, urinalysis performed and bloodwork run.
If medical causes are ruled out then it is behavioral and your veterinarian can work with you to develop a treatment plan.
If medical causes are ruled out then it is behavioral and your veterinarian can work with you to develop a treatment plan.