The slaves started it, and the plantation owners used to go down and judge the competitions, and the winner...would take the cake.
The Cakewalk was, in fact, a deliberate satire of the high flown dances of Southern High Society.