One thing to consider is this; the lender and the agent were involved with the potential purchase in the beginning of this venture. The lender may have called the agent (I always keep in touch with lender during the entire process of a home purchase and the lenders usually call me a lot too), to check up on the transaction. I speculate, out of courtesy, the agent told the lender he was out of the deal. Even though you instructed the agent to keep this a “secret”, I seriously doubt he broke any fiduciary duties by telling the lender. The sharing of this information would not affect the sale or financing of the purchase.