The “gambling” aspect of CCGs is mostly tacked on by outsiders, though driven by decisions of the manufacturer.
That said, when you have a deck of, say, Pokémon cards in your hand, there’s nothing about it that encourages a gambler’s mindset.
My 8yo has a bunch of Pokémon cards and he just likes playing with them, he has no idea of any monetary value they might have. There’s nothing about the physical product or game itself that betrays that.
It’s the culture created around it that’s poisonous.