Caregivers do not know for sure what causes anxiety attacks. Sometimes they are caused by being in a situation that you find upsetting. You may have them due to a stressful life event, such as getting divorced. You are more likely to have anxiety attacks if you also have another mental health problem.