The story
From the proverb "After the Lord Mayor's show comes the dust-cart" (or "donkey-cart", or "shit-cart"). Bringing up the rear of the Lord Mayor's Show is a team to clean the manure of the pageant's horses.
Etymology from Wiktionary, CC BY-SA 4.0.