If the charger is a trickle charger (low amp, but constant charge), the battery may have been overcharged forcing the acid up through the terminal and causing the corrosion to build on the combination of lead terminal and copper wire connection. The battery may be OK after cleanng the corrosion, or it may have been damaged by being over charged.
.........Paul