You’re right that antibiotics are not effective on fungi, but overuse of antibiotics in humans makes you more vulnerable to fungal infections because it kills off a lot of your defensive “good” bacteria. That’s why yeast infections are a common side effect listed for antibiotics.