A few years ago I found myself spitting in the street for a few days. I was in Paris and I was sick, but I had to do a few things and staying in bed was out of the question. I had a lot of phlegm and sometimes I just had to get it out. I was embarresed as hell but I just didn't have a choice.
I guess it does have a lot to do with smoking, since it causes phlegm.