A lightning bolt moves at 270,000 miles per hour which of course is very fast. This is used to describe something that moves very fast such as a vehicle, an animal, or a person. The origin of this idiom is unknown except that it comes from southern USA.