Etymology
Today it means: Used to express disappointment. Full definition →
By analogy with good show.
Etymology from Wiktionary, CC BY-SA 4.0.