Your wallet balance and earning are expressed in msats. Most likely you had less than 1000 msats in your wallet which would show up as 0. Your earning likely also had factional sats and when added to your wallet's fractional sats, totaled to greater than 1 sat.