Phrase Finder observes that this expression has long been used to conjure incredible speed. Lightning obviously occurs very fast, and the exaggerated “greased lightning” is used to imply it can be made to occur even faster. The expression has been around since at least since an article “…published in January 1833, which included the text ‘He spoke as quick as greased lightning’.”