Some buyers would have paid more than the market price. Adding up those savings across every buyer gives the area between the demand curve and the price line.