Expression or term for winning a bet on bad odds

Solution 1:

In your example interjection “Profit!” isn't a description of the specific outcome, it's an allusion to the PROFIT! meme, where one presents a facetious strategy that leads, against expectation, to profit.

  1. Do something stupid
  2. Do something stupider
  3. ...
  4. Profit!

The meme became comical through repetition on the old Slashdot, but apparently is based on the South Park ”Underpants Gnomes' Plan” from 1998.

Contrast with Sidney Harris's cartoon ”I think you should be more explicit here in step two”