There are two main questions when it comes to loot boxes. Are they bad for gaming, and are they gambling? Honestly both a matter of opinion. Companies will say no to the first one because it makes them money and gamers seem to be pretty split.
The gambling question weirdly has seen different answers, Americas ESRB has sad no since you get something for your money and the European equivalent has said only a gambling commission could possibly answer it.
However my answers are simple, loot boxes are becoming a cancer. What started as just a quick way for game makers to make some extra cash and gamers to get some cool stuff is becoming damn near pay to win and a pay wall to hide stuff behind.
As for the gambling question that one is rough. Yes you do get something so I get the ESRB’s point. You pay money and you get something, where is the gamble? Here is where it gets dicey. What you get isn’t always of equivalent value. If I said send me $20 and you I will send you random money back between $1 and $100 would you feel that was a gamble? I certainly would. Either way it seems loot boxes are here to stay, so we may as well get used to them. Best wishes and may the gaming gods bring you glory.