From my understanding, it's generally for health purposes (though the convenience doesn't hurt). An example my vet provided is that the level of sodium consumption needed by humans is way too high for dogs.
Much commercial dog-food is made with ingredients which aren't fit to be consumed by humans.