If you loiter around the sun temple, it's likely you'll acquire something. When you loiter around like that it looks like you're waiting for something, so if someone puts something in your hands and you just happen to acquire it, well, no one can fault you for that.
You managed to acquire some tobacco, but just as you're about to leave Tokugawa (とく) Ieyasu comes marching up to you!! Or at least, his ghost does. He stares you dead in the eyes and says, "I didn't found the shogunate for you to acquire illegal goods and kill your body toking on my soil."