Gambling includes plethora of games, various sports to bet on but doesn't it all boil down to money in the end? More the money involved, more the thrill.
Suppose, as title says — you had infinite amount of money, would you still gamble?
Personally, I can't see myself giving two fucks when I don't care for money in first place. Would you?
You will find many wealthy even poor guys who get hooked on gambling, so it is not just the cash, it is the rush of dopamine, they are kinda risk seekers, and the possibility of winning that attracts them more. Yes, it is so much true, people with lofty incomes often gamble more for seeking the risk and feeling of excitement, not just because they need more money. Look at this Aussie guy who luckily found endless notes, spent them on gambling and partying however it destroyed his mental health badly, he described it as run after that adrenaline like feeding a tiger that never stops growing. So, whatever you have endless wealth or not that doesn't matter; people still gamble for excitement and emotion, not just for profit.

Source:
https://www.theaustralian.com.au