Pets can live longer due to various factors such as genetics, breed, size, diet, exercise, veterinary care, living conditions, and overall health management. Some pets are naturally predisposed to longer lifespans based on their breed and genetics, while proper care and attention can also contribute to their longevity. Regular vet check-ups, balanced nutrition, and a safe environment can all play a role in extending a pet's lifespan.