It's not just gambling. Influencer and VC culture incentivize this same 'hit it big or die trying' ethos. I have seen '5 million is too little to retire on' type of messaging on HN too. The only way to save more than that is to take on an irrational amount of risk (ie. Gamble).
For genZ, the squeeze comes from 3 sides. On one side, few professions promise long term stability. There is a feeling that the ground can vanish under your feet at any moment. (SWE jobs in particular are feeling this pressure). 2nd, Social media has raised the goalposts on the idea of a good life. Lastly, Nimbys and opaque healthcare policy have put the lowest (and most quantifiable) aspects of Maslow's pyramid out of reach. (Safety needs)
Gambling is a symptom. Nowdays, people don't invest in good bonds because there is no such thing. Similarly, people don't invest in steady jobs because increasingly, there is no such thing.
Housing reform, transparent healthcare and a small degree of worker protections would go a long way towards incentivizing stable decision making.