Because knowledge has to be justified in order to be knowledge. Universities produce justifications (in form of repeatable experiments, studies, proofs, etc.), churches don't.
If you need a complex surgery, would you like to go to a doctor or a priest?