who did the monks and nuns help care for during the middle ages