It does not cost the retailer more in commission to add cashback to a debit card purchase, but in the process of giving cashback, the retailer can "offload" cash which they would otherwise have to pay to deposit at the bank.
Adding cashback to a debit card transaction doesn't impose additional costs on retailers in terms of commission fees, but it gives them the opportunity to transfer funds that would otherwise be deposited at the bank.