Seeing a spark is evidence of a high difference in potential (potential = voltage), thus connecting a low/dead battery to a charger will arc from further away than if your battery was at 12.9v. If there were sparks disconnecting the charger, maybe your battery is not fully recharged. There should be no spark when reconnecting with the bike. Thought Id elaborate a bit (late).