I read a scientific study where it was argued that a person experiences the strongest emotions when he has almost achieved a result. In gambling, such situations are quite common - the fall of two 7s when three are needed, etc. Human biology forces him to overexert himself and continue hunting when the prey is almost caught - the same happens in gambling. That is why many gamblers cannot stop in time. Only after this do the emotions associated with winning have a meaning.