Because migraine headaches
can be localized around the eyes & because visual symptoms (spots/patterns etc) are often associated with migraines, the assumption often made is that the eyes are the cause of migraine.
In truth, the eyes are responsible for migraines in the minority of sufferers. The tendency to suffer migraines can be hereditary in nature. Many triggers have been identified.