This isn't the only time progress in one field leads to steps backward in another.
Once upon a time, the Romans knew the cause of plague: evil spirits. Evil spirits lived in the bodies of the living and the dead, but would occasionally jump from a sick person to a healthy person The health person would become sick, and further spread evil spirits.
The Romans knew how to prevent the spread of evil spirits: isolate the sick and the dead, and even burn the bodies. They even weaponized it, using the bodies of those that died of plague as a biological weapon.
Once we learned that evil spirits don't exist, we threw away this theory of disease. Instead, we believed that plague (much like flies, mold and other such unpleasantness) was spontaneously generated in matter. It wasn't until much Pasteur that we discovered the Romans were 90% correct.