You are arguing purely on price but not considering other factors. To the person who bought the beer, the deemed value is probably more than they paid for it, and to the seller the beer was a liability due to having a limited shelf life and occupying shelf space. Thus there was a gain for both parties.