The route of administration depends on the antibiotic
Some must be given intravenously, whereas others may be given orally. Some antibiotics may be given either way. Usually, however, IV antibiotics reach higher peak serum levels and may be more effective at this higher killing dose. So, in your case, the higher serum levels may have been more desirable to control your infection.