I got a car loan once even though I had the cash to buy outright. I didn’t want to drain my savings and end up high and dry if there was an emergency. It was worth it to me to pay a little interest so I still had a cash buffer.
If I were living paycheck to paycheck like many folks are, I imagine the logic would be similar for smaller purchases.