It’s all a bit Carry On but it serves a purpose: the Miller is telling a tale of dignity undone, of the snooty and mighty brought low, and he’s doing so in response to the Knight, whose tale of chivalry and courtly love immediately precedes all of this crude flatulence.