Many companies offer promotional games which include 'win codes' if you buy a certain product. These 'win codes' allow to win prizes by chance which are much larger than the value of the bought product. An example would be the sales promotion "Mc Donalds Lottery" (see wikipedia), which offered prizes up to $1,000,000 if you are really lucky. I even participated in similar lottery-like promotions by non-licensed retailers as a child, when I would have never been able to participate in real lotteries, which are only offered by state-controlled companies to adults in my jurisdiction. Similar regulations, both concerning age limits and licensing needed exist in most countries. Such it appears to me that such promotional games are not considered as lottery, otherwise such promotional games were not possible. Why is this?
My first thought was "As long as a product is sold and the 'win codes' are only a bonus, it is not illegal lottery'. But if this is the rule, what prevents a company from selling very cheap products (worth a few cents) for a few dollars and giving 'win codes' with significantly high chances of winning as a bonus?