Before germ theory, what did doctors performing surgery or treating wounds do to prevent infection?

by Dontbecruelbro

What was their explanation for why those measures worked or didn't work?

Sjoerder