I mean, this has always been this case with alcohol hasn't it? it's legal to consume but not while at work or operating vehicles. if you do so and injuries/death result, you are held liable.
Even longer, personally failed a drug test after not smoking for 4 months. I believe it's something to do with modern test involve looking for what THC breaks down into as the body processes it instead of THC itself.