Al, if the battery charger was not plugged in it seems to me that you just had a potential difference, +8V in the battery positive to 0V in at the charger, so you got a spark from the battery terminal to the lower potential charger cable - not really to "ground" but to the zero potential at the charger so there was electron flow.