Why do antibiotics cause me digestive problems?

Gut flora. Gets rid of gut flora. Recommend taking probiotics with it.
Antibiotics. Antibiotics are not benign, just acting only on bacteria. They are quite often potent chemicals, and there can be significant gastric irritation when using an oral antibiotic. That is why antibiotics are often recommended to be taken with food, which would buffer the irritating action of the medication.