Some pet owners may think they are being kind to their pets by giving them a regular treat, but sometimes it can do more harm than good. Regularly treating a pet with food will more easily lead to obesity.
I have heard of dogs developing diabetes, probably from eating too many sugery treats. I don't know if other animals can also become diabetic, but it is advisable only to give a pet the sort of food it would naturally eat, rather than what humans like to eat.
Remember that it only really counts as a treat if it is occasional, rather than a regular addition to a pet's diet, or when it is used as a reward during training.