As a former real estate agent, I'd say that the check may have come from the bank, but in every case I saw, the money came from the buyer or seller, depending on what was negotiated in the deal. (Rather like how the appraiser is paid in a residential sale.)