The time bacteria have been on Earth has nothing to do with how able they are to withstand attacks. Their generational refresh rate is orders of magnitude faster then us. That is all. The evolutionary process works faster on them then we can make new drugs. If a brand new antibiotic was made every single year that could kill all the bad bacteria we would never have a problem.