From a marketing perspective, it sounds like a slam dunk. Someone wants to sue you, with lots of fanfare, saying that your energy drink doesn’t actually give you wings? Sure, come in at us. In the mean time, we’ll take out ads everywhere with fake apologies about not actually giving you wings.
Things like this are literally just so that there is a test case to make it up to the Supreme Court. They do something ridiculous that obviously violates the intent of the law but mostly stays inside the letter of the law, in hopes that the Supreme Court will take it up and overturn the law. So, yes, the fact that the vending machine can technically sell bullets to minors is a feature, not a bug. Why is their endgame getting rid of age restrictions for firearms and ammunition? You’d have to ask the death cult themselves about that one.