Earnest money is used when you've already made an offer. How do you make an offer while not including the cost of the fees in the sale? That sounds like poor negotiation.
The offer is an agreement on the price of the house, due diligence and earnest money from the buyer, contingencies (buyer needs to sell their own house) and any concessions from the seller (repairs, money at closing, etc).