I don't think you need religion.
Medieval learning was really advanced.
Only he is successful in his business who makes that pursuit which affords him the highest pleasure sustain him.