For non-office workers it's not always convenient to make coffee while you work, so perhaps that's the difference. And to be clear, I don't think it's harmless (but I think the degree to which it is more harmful than caffeine, if you exclude the non-nicotine-related harms of smoking cigarettes, is probably exaggerated)
I started smoking because my housemates did and continued due to the hunger suppression and the nicotine hit. I also drink coffee, it's not the same rush.