Those elements of surprise and chance are not enough a reason so that those loot boxes games should be considered gambling. Buying a mystery box is not gambling.
At first, I saw it as a harmless way for players to spend their money and for that gaming platform to earn some but in the long run, players are kind of addicted to buying them. They are after rare items and the chance of getting them is low compared to normal ones. They will not stop until they get themselves a rare in-game item and that might take a while and take some money that is why I consider it as gambling.