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.
Of course, however and whenever victory will always be a pleasant situation, we can never lie about the mood that we will feel at that time regardless of our purpose in gambling and for the problem of defeat, of course, as we know that most people feel disappointed and even emotional when they are in that situation, but you are right with what you said above that we can actually make ourselves not feel too disappointed when we experience defeat, namely by realizing that the risk of defeat is a part that can never be eliminated in gambling.
This is the importance of having a proper understanding of how gambling really is, because that way we will be able to control our emotions a little when we lose because of the self-acceptance that defeat is a natural thing in the game.