If the Ni-Cd battery is not fully discharged during use, it will start to charge, and the next time it is discharged, it will not be able to discharge all the electricity. For example, a nickel-cadmium battery starts charging only after discharging 80% of its charge.
When fully charged, the battery can only discharge 80% of the electricity, which is the so-called memory effect.