It's because it's aimless that it's good for the mind.
Or rather, good for you (because you are not the mind), because you get a break from your "crazy monkey mind"[1].
"You" meaning anyone who does it, not literally you, of course.
That's the double-edged sword however. Many "random strangers" will be homeless people who notice that you are smoking and will ask you if you have a ciggarette to spare. My ex girlfriend used to carry an empty ciggarette box for that very reason: she will show it and tell "sorry, that was the last one I had" :)
My experience has always been the opposite, it's the well heeled guy/gal who has had one too many drinks and wants to bum a smoke. Go, buy a pack, not giving you any!
But if a homeless guy asked, always gave one.
more like consuming unnecessary substances and engaging in recreational activities that you can't afford is a good way to become "underprivileged" and cigarettes aren't really going to bring much joy regardless. but there's no harm in asking. just don't expect people to answer any way other than how they choose to answer.