Is anxiety a withdrawal symptom or could this be something I just was self medicating?

Both? It could be both, sometimes hard to say exactly, without more info, stopping alcohol or other substance, was anxiety strong before you ever used a substance. See your doctor or counselor to further explore this and possible treatment options.
Anxiety. Could be either, both, or due to other inherent factors. Best to consult a mental health professional.