Credit and contact balances

Why some entries change what a contact owes and others do not.