They were havens for the poor, hospitals, hospices for the dying, and centers for copying texts which were then protected in their libraries.
They were havens for the poor, hospitals, hospices for the dying, and schools. Nearly every monastery had a scriptorium for copying both secular and sacred texts which were then studied and protected in their libraries.