I think I see where you're confused. Where you think "I ate a cake" you think of having a slice or one of those tiny cakes that high end bakeries sell. When a ham says "I ate a cake" they mean they ate an entire one of those sheet cakes that you get at the grocery store for a kid's birthday party.