I agree that he may be in some kind of pain.
I would make a vet appointment for a geriatric exam & a cbc panel done (blood work)

Is he having any other symptoms at all? has his routine changed? Anything else changed?