Here's why:
* "Flash" refers to a sudden burst of light, which is what lightning is.
* "Flash" can also be a verb meaning to move quickly or suddenly, but in this context, it's used as a noun.
Therefore, "an electric flash from clouds" and "a flash" sound the same but have different spellings and meanings.