If you made food, ate it raw and it made you ill you wouldn’t do that again.
If you ate food at a restaurant and had a really bad meal you wouldn’t go back would you?
They experimented mice with this and the mouse followed this, until a drug was added. A mouse will choose the dopamine hit from cocaine over anything else until death. Gambling produces similar dopamine effects which is why you see ‘day1 and I lost it all’ so often. You will keep hitting it until you’re financially dead or even as extreme to think what is the point… unless you stop now.