It's because they're feeling uncomfortable if the other person doesn't smile as they're unsure if what they're saying is approved. I see it as a sign of insecurity, I'll smile when I feel like smiling and it may very well be that what the other person says doesn't make me feel like it. Mostly it has nothing to do with the other person as I'm just not in the right mood.