It wasnt Marie Antoinette but Madame Victoire, a Louis XV's daughter.
And apparently she didnt spoke about cake, but the dough used for cook paté. Instead to use a baking pan, they used dough for surround the paté and cook it.
A funny twist, is nowadays, we eat the paté with it's dough. It is a paté en croute.