Fee for Depositing Cash

I closed one of my accounts at my local banking center. I was inside the center for two hours – the first hour waiting in chair and the second working with the customer service representative. When I closed the account, the representative transferred the entire balance into another account. She made the transfer as “cash transaction”. Later that day, I was charged a $130 “cash transaction fee”. Why would they charge me a fee for depositing cash? The bank makes its money by lending out cash that they have on hand.