A herd of cattle (or a person) in such a steep valley is largely shut up (enclosed).
Practice speaking and memorizing "shutup" and many other words and sentences in English.