Their is desperation because when a gambler is at high loses he becomes very desperate and all his thinking faculty get blocked off because all what his mind will be telling him is to actually find a way to recover that funds even when he knows that he doesn't have nothing left to play somethings he can even sell his property at the spot or loan them because he is desperate and also too greedy to let go but on the greed aspect it's not too clear because only your emotions here and there can flip things for ya.
This is enhanced by the fact that the casino is like a machine which can both make money and lose money and is right in front of the gambler. So they get a false confidence that they can make the money back right from the casino if they play with more money. This increases the chances of their losses and stacks up more losses before they can recover and ultimately leads to a vicious cycle.
That is when all the borrowing money and all that comes in place. Which is another mistake waiting to be made.
The method to get out of this cycle is stop playing and find other ways to make the money back and pay off debts.
I doubt gamblers can actually recover money they've lost through gambling. This is just the sad reality they need to get used to. There was a time I was actively involved in sports betting, I place bets literally everyday but only gain from my bets once in a very long while. Although my intentions were not necessarily to recover all I've lost through gambling, I just wanted to win and feel happy. It occurred to me that I was actually losing more than I was gaining, my occasional wins could not even cover up for my losses during those period.
Winning feels good but most times, it doesn't cover all that was lost. Gamblers who are getting themselves indebted just for the sake of gambling are not doing themselves any favour because they will be losing more than they will earn. It is better to gamble for the fun of it and enjoy the win if it eventually comes.