Instant Winner Sweepstakes for Canadians

So I buy a packet of M&M’s and apparently i’m not a winner, but being bored i read the official rules, which got me to wondering:

How come the rules for many of these contests state that Canadians will be required to complete a mathematical test in order to collect their prize. Is this a device to ensure that the player wins due to skill and not sheer luck?

Also, what is it with Quebec? Oftentimes it seems that residents of Quebec are not eligible to win at all…

Different laws in Qubec than the other proviences. Also afair games of chance are illegal in Canada so to prevent it form being called a game of chance they add the mathmetical test which is a test of skill.