Get a urine sample checked for germs and crystals. If it's medical, it can be remedied with medicine or a change of food. This happened to my cat, and he turned out to have painful crystals forming in his bladder and blocking his urethra (poor kitty!) A change of diet cleared it right up.

Love, Columbine