If I remember my schoolboy history, the song commemorated a particularly useless campaign by the English Army in Flanders or somewhere in the Netherlands, during the 18th century. I've probably got the details wildly wrong, but the general point explains the fatuity of the song.