Tobacco actually has some value: It produces a craving, which can be satisfied temporarily. Being able to fulfill some kind of desire, even a contrived one, is the value. Or rather, the addiction of smoking created a desire that can definitely be satisfied.