What is one reason that the Church was so powerful during medieval times?

It made laws and set up courts to uphold them.
It forbade national religions.
It encouraged warfare among feudal lords.
It encouraged serfs to leave the manor.