Two possibilities are diabetes or a decline in kidney function. Both are more common with older cats.
Diabetes occurs when a cat’s body does not make or recognize insulin. Therefore sugar is not used by the body for energy. Separately, sometimes older cats’ kidneys wear out and do not function effectively. Both diseases are controllable. Taking steps to counteract these issues can make your cat much more comfortable.