Anti-biotics are produced in Nature by Fungi to keep bacteria from eating/competeing with them.
So it is not any wonder bacteria would have a defense for this. So the fungi end up needing to adapt to this via mutations and fungal breeding.
Life is a constant arms race.
Thanks.