What lesson did he teach? Somebody does, indeed, have to win the lottery. The odds are very much against any one specific person. He got incredibly lucky, which is nice. But this doesn’t really serve to teach students anything about probability, other than very improbable events do sometimes happen.
The expected monetary value is negative, so it’s irrational to play if you’re just doing it for the money. I suppose if you don’t really mind the price of a lottery ticket and get a kick out of playing, it could be worth it. But that would be true even if he never won.