Baseball cards aren't gambling since you get something of physical value which can be sold for a profit later, while gacha and loot boxes are since all you get are what amounts to a few KB or MB of data which aren’t physical and have no inherent value of their own aside from that of the game it’s in. There was a whole senate hearing on this alongside many government bodies who discussed this in great detail. Gacha is gambling while trading cards are a gamble but not gambling, you may not know what you’re going f to get but whatever you do get is something of physical value.