This question already has an answer here:
Presidential candidates say "If I were elected president" but why don't they add an article in the sentence? Shouldn't it be "If I were elected a president"? After all, we do add articles in sentences like "When I become a mother" and "While I was a captain." Could someone explain?