Read this New England Historical Society article about election cake.
It starts off with:
“Election Cake was a highlight of the Puritan celebration of Election Day, one of the important colonial holidays along with Commencement Day and Training Day.’’