Most (if not all) aircraft electrical systems do not regulate the charge rate for the battery. When a battery is electrically discharged (flat) it will draw a very high current if charged from the aircraft. This can result in the battery overheating, damaging the plates (lead acid) and cells. Not good and can be a potential fire hazard.
TH