They are often said to be named after the French word for profiting by means of because they were originally made with leftover scraps of dough, which people could then take and profit from.