It's simply a guarantee of full potency of the drug. A while ago, a study (currently looking for it...) found ~90% of OTC drugs were perfectly fine 10+ years after the expiry date, IIRC. And most antibiotics should be just as stable as aspirin.
The US military operates the Federal Shelf Life Extension Program which, from what I understand, regularly tests federal stockpiles of medications to avoid waste.