Chance is everywhere
Casinos, lotteries, raffles, video-game loot boxes and insurance companies all run on the same mathematics: probability and expected value.
P(event) = favourable outcomes ÷ total outcomes (when all outcomes are equally likely)
Odds in favour = favourable : unfavourable. If P = 1/6, odds in favour are 1 : 5 and odds against are 5 : 1.
Lotteries
In Lotto 6/49 you choose 6 numbers from 49. The number of possible tickets is 13,983,816, so the chance that one ticket matches all 6 numbers in the main draw (the top prize) is 1 in 13,983,816. Buying one ticket a week, you would expect to wait about 13,983,816 ÷ 52 ≈ 269,000 years for a jackpot, on average.
In B.C. you must be 19 or older to buy lottery tickets or gamble (at the time of writing). Games are designed so the expected value for players is negative: that is how they make money.