A lot of those exchanges might be disingenuous but they also provide opportunities for short bursts of friendly contact between strangers. If the default were purely transactional then being friendly with a clerk/barista/etc... would be more difficult/awkward.