Whats the difference between cat and dog food?



My dog loves cat food more than his dog food, but since its supposedly not good for him, we dont let him have it. I was just wondering if anyone knows why dogs cant eat cat food and basically what the difference is between the two?