To talk with someone out of courtesy, to pass time, or in an effort to engage with them socially.
To engage in idle conversational fantasies.