Why are microorganisms used to produce enzymes?

If possible, focus on the production of pharmaceutical enzymes via microorganisms, but a general explanation is sufficient as well.