Originally performed as an afterpiece to Tom Taylor's comedy Babes and Beetles.
From the en.wikipedia.org
This was an afterpiece which came at the end of a play.
From the en.wikipedia.org
A piece that began the performance was called a curtain raiser, and one that ended the performance was called an afterpiece.
From the en.wikipedia.org
This six-act behemoth also set an important precedent by being the first show on Broadway to stand on its own, without the performance of other entertainments or any afterpiece.
From the en.wikipedia.org
More examples
A brief dramatic piece (usually comic) presented after a play
An afterpiece is a short, usually humorous one-act playlet or musical work following the main attraction, the full-length play, and concluding the theatrical evening. This short comedy, farce, opera or pantomime was a popular theatrical form in the 18th and 19th centuries. ...
A short entertainment, usually a song or dance, performed at the conclusion of a play.
In eighteenth- and nineteenth-century theater, an entertainment staged after the main play.