You can make a pre arrangement with the seller to split the cost of a survey. The advantage for the seller is that a recent survey is good for the prospective buyer if you opt out. It is just part of the dance. It is the same with aircraft.
These costs depend on the size of the boat, what marina you use for the haul out and how much the surveyor charges. Our haul out and survey wasn't anywhere near a thousand dollars.
But yes, the prospective buyer pays AND eats the cost if he or she decides not to by the boat. But don't give up the survey even if you bought the boat. You paid for it, it's yours. If the boat owner wants a survey he or she can pay for one. I have heard of owners asking if they can have the survey if the buyer decided against the boat.