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