Well, the uncertainty of the outcome is the main attraction of gambling, it triggers curiosity, pleasure and negative emotions, but the problem here is that many gamblers are too serious in responding to the chances of winning, so that often it increases curiosity and greed which ultimately leads gamblers to a much worse situation. Gambling is indeed a probability activity as you said and that is true which means winning and losing can probably be said to be 50/50, meaning winning and losing will always be part of the game as long as you play, and that also means that gamblers should be neutral and realistic in responding to the results that will occur at the end of the game, in the sense that when you win it must be fun and when you lose it shouldn't be too much of a problem because it's part of the game.
In general, of course, any win brings positive emotions and a good mood. And a loss is the opposite. It is just important that the negative feelings in case of a loss are not too strong. And for this, in my opinion, there is an excellent option to always experience a loss with the thought that this is a game in which this time you were unlucky. But since this is a game, there will definitely be a win and the question is only how much game time and how many game actions need to be taken to win. And maybe this will even be the beginning of a well-known streak of luck. Which also happens sometimes.
"Having the mindset that when you don't win it means you're unlucky", I like that statement because overall yes winning in gambling is about luck, it's actually that simple to accept the reality of the losing situation that we experience, but what often becomes a problem is gamblers who from the start do not have a good mentality to accept defeat and in addition they bet using an amount of money that they cannot afford to lose. So it's natural that when they lose they get caught up in their emotions, therefore it is very important for a gambler to have a responsible mentality in gambling, but overall in most cases gamblers often find it difficult to maintain their awareness just because they see a chance to win, usually they are played by their own hopes.