How is that even possible? Between trying to light the house on fire and Hank taking him away, there is no chance Jesse had the time to find the lottery ticket (let alone think about why Walt would have one and figure it out based on his mental state at the time.)