Why can flashing lights cause seizures?

Overstimulation. The part of the brain affected is overstimulated by the light flashes. This is abnormal, of course.