I take the OP to mean that this occurred in a full-service market, where you’d expect your things to be bagged for you (and not in a self checkout line).
I know what you’re talking about. There seems to be a lot of foot dragging these days. I was at Kroger a couple days ago. The woman in front of me had 3/4 of a cart of things and was bagging her own because nobody was there to do it. The young (about 25 years old) cashier didn’t seem to be in any hurry. After ringing up the last item, the cashier walked away while the customer was still bagging. She went to the right side of the checkout area for a couple minutes. Then she walked to the left side for a minute. The woman bagged her last, we waited a minute, and the cashier came back to complete the transaction.
There’s another cashier who’s probably in her 50s or 60s who is in no hurry at all. I’ve had the misfortune to choose her line and discovered she’s looking toward the door, not really focused on the task at hand. She likes to make idle chatter with customers. She does that mental hiccup between customers like, ‘La la la la…Now where was I?’ and needs a minute to reset, adjust her smock, whatever. She’d rather be home watching game shows. I just know it.
There’s also a guy in his 40s or 50s there who seems to take his sweet time. He doesn’t chat much but I think he’s watching the clock. He would rather let the baggers—or customers—bag, for sure.
All of them are old enough to know better but I’d say they see a chance to slack off and they’re taking it.