These gardens continued the practical value of earlier "physic gardens", often associated with monasteries, in which plants were cultivated for medical use.
Why did monasteries have gardens?
for medical use