Those loot box systems are getting out of hand indeed. Some countries even declared it as a gambling, while more considering that as well.
Only if you pay real money for it. Then i agree it is gambling.. if you spent currency earned in game, then i think it is stupid to declare it gambling.