Veterinary pharmacology

Why should a sugar-free human food not be presumed safe for a dog merely because it is safe for people?