Etymology
Today it means: Expresses dislike or contempt for something. Full definition →
By analogy with for the win.
Etymology from Wiktionary, CC BY-SA 4.0.