If the loan was insured, or peddled off as part of a security how does all that percolate?
In the end of a successful loan payback, the bank has a profit, “more”. Because the loan, and deposit are accounted in entries but not the interest service, sale of the asset means the bank has walked off with a gain and the effect shows elsewhere.