Once it starts being skill based it changes from pure gambling to skill based betting.
Loot boxes are purely "luck" based gambling, where your "luck" is dynamically altered based on how much the operators are get you addicted. Including occasional "free" rewards to encourage you to buy more with actual money.