Many animals have genes that predispose them to obesity but overfeeding is one of the primary factors that contribute to weight gain.
Pets with lower activity levels put on weight more readily. Indoor pets will require much higher levels of activity than those allowed to roam around on farm ground. As animals get older, they become more prone to weight gain due to lack of exercise and increased arthritis.