Behaviour, especially widespread behaviour, is rarely irrational. Despite its reputation Sweden has become surprisingly unpragmatic in recent years. It is very easy to end up in a situation where you can't continue your studies, but you can't also enter the job market effectively.
I absolutely think things like loot boxes, sugar and gasoline should be regulated or taxed to decrease their potential to do damage. But at the end of the day you have to provide positive opportunities for people to do the productive thing.