You have mentioned the product being defective (in that case no deductions)
and
The buyer no longer wants the product
There can be another possibility,
Many products at times are sent for warranty claim or replacement after problems arising in due course of use. (i.e. the product not being defective right when it was received).
In such cases if the warranty can only be claimed in sellers city or by seller then re-shipping charges has to be paid by the buyer.
TechiE