What is the meaning of [TO LOSE YOUR SHIRT]

TO LOSE YOUR SHIRT
= to lose all of or most of your money

I lost my shirt at the casino!
Joe lost his shirt betting on the horses