This is a pun on 'rich' which in food means a dish containing a large amount of fat, spices, sugar, etc, but in the regular sense 'rich' means having a great deal of money or assets which could be attributed to having a lot of coins
When some coins fell into the batter it turned out to be a rich cake .