The imagination of already seeing your potential win as true can make one forget their financial status as it did to the man in the story.
I get your point but a lot of people who gamble for money do think about their financial situation and in fact they think that if their financial situation is so bad they can improve it by gambling and winning big. They are that point of desperation where they have so little that they think they don’t have much to lose anymore.