Ughhh

So i went to urgent care for this thing on my gum and he said it was aphthous ulcer thats a canker sore but why did he give me antibiotics & mouth wash for if its just that? If it was an abscess would he of known?