I was a cashier many, many years ago. Mainly, I found it to be a tedious job. I always enjoyed chatted with the customers because it helped pass the time. I wasn't required to chat with them, I just enjoyed it. However, I could always tell whether they wanted to chat or not, and respect their wishes.
As a customer, I also like to chat, but again, I respect the cashier.