What are the causes for Agoraphobia?

Having panic disorder or other phobias, or experiencing stressful life events, may play a major role in the development of agoraphobia.

Source: http://www.mayoclinic.com