Over time, those sparks take their toll on connectors. Why beat up a fragile, hard to replace battery connector when AC outlets are cheap and relatively easy to fix.
IMO, manufacturers say to plug in AC first to limit liability should someone get a potentially more severe shock.