as the vitreous separated form the retina it can exter tractional forces on the retina that the brain interprets as flashes of light.
During vitreous separation, the retina can get traumatised and can bleed or tear.