The remedy for both is restitution. The rationale is different but the remedy is the same. Benefit conferred is for a past action, quantum meruit, quasi contract and implied in fact. An implied in fact contract requires a knowledge of a useful service that is usually charged for and has to be normal and reasonable. This reasoning could have been applied in Webb v. McGowen.
Social policy comes from the legislature and constitution, customs and mores.
Here there is just a sneaky law student otu to make a quick buck.