Not sure about it happening to every beginner gambler including me at that time, because when I was a beginner I just felt it was just a bet and also a game so there would clearly be a risk of losing. Therefore, when I first started betting I only did it with low money, although not money that was ready to lose, but I realized that the risk of losing still existed. With such awareness, of course I will also accept defeat even though the feeling of disappointment is certain to exist and it is difficult to accept defeat if we really expect victory.
Expecting victory is not a worthy excuse to not want to accept defeat when it comes, i mean, there is never a person gambling, or going for a fight for example, who goes expecting to be defeated (minus rigged battles like we mostly see in wresting), every one including the weak goes with the expecting of winning, but if eventually they lost, they have no choice but to accept it, go home and prepare themselves better for their next battle.
Same also with gambling or even sports betting, no one places bets or gamble with the expectation of losing all of their money, even though it is commonly advised that we always prepare for such just incase it happens, and when it does happen, one can't kill him or herself, and you can't hold the casino to give your money back, accept it and move on, prepare and try again next time, maybe one get better luck 🤞.