Many games nowadays have loot crate mechanics in place, that let the players test their luck. Typically the player is given the crate for free and can only open it by purchasing a "key". In some games you can buy both.
The player is essentially gambling because they do not know what they will get, and often it is the case that the player was after a rare item that drops at a much lower rate than others. This leads to players spending more money on crates and/or keys until they get lucky.
How is it that is not covered by gambling laws? Children under the legal gambling age(s) play these games, and this is not limited to 18+ games either.
The only reasoning I can give is that it is because the player is guarenteed to win something, and as such it doesn't count as gambling (?).