That't the perfect example of what's happening.
Problem at the root is parents not caring/not informing themselves on how their children spend their time and how the new fancy and shiny technology actually works (hell, no one of them has ever questioned the fact everything is "free"?).
Anyway, the lootbox thing is basically videogame companies knowing well the situation and designing their games as traps for unattended children to blow out as much money as possible without their parents knowing (and i'm pretty sure that a 14yo kid knows well what's happening and why he's doing it in secret - reason why the parents discover it after it's too late).
The facts are pretty simple and clear:
- parents aren't paying enough attention to their kids
- companies are actively working through this to rake as much money as possible
It's obvious that if all parents suddently started being informed and competent and actually watch what their kids do, the issue wouldn't be present. However this is an utopic scenario hence someone has to take measures on the other side of the issue = videogame companies.
They're as guilty as distracted parents. They know what they're doing and they're buying time before the axe falls down - as governments are now mad about all the missed revenue that would have come out of this gold mine if it was regulated beforehand.
Point is, if companies actually kept their greed in touch and implemented "fair" systems, probably this would have passed over and no one would have bat an eye, slowly getting used to a new standard. However (and hilariously) because of EA and their crappy Battlefront 2 everything went out of scale and reached the ears of someone who actually managed to do the 2+2 and realize what was actually happening.
TL
R; parents are to blame, but vg companies are guily of exploiting a very dangerous situation, and now need to pay for the damage done to the industry as a whole.