Is he neutered?

If not, as a tomcat he will pee in different places and it will STINK.

If he is, could be a UTI.

In either case, a trip to the vet is called for.