By the principles of double entry accounting, an entry in the current account gives rise to an entry in the capital account, and in aggregate the two accounts automatically balance.
Coupled with a basic failure in double entry-bookkeeping (keeping proper track of internal and customer balances), they didn't know they were leaking bitcoins.