They can accept another offer that was all cash, they could even accept a lessor price than your offer if the cash offer was rock solid with proof of funds (essentially guaranteeing the sale). There are so many variables that we don't know about the other offer that it is difficult to say why the seller is taking the other deal. Sorry it didn't go your way.