A buyer will typically put down an earnest money deposit before an appraisal is done. If there is an appraisal contingency in the contract and sale falls through because the house appraises below the sales price, the buyer will get their earnest money back.