In the days before wire, brick walls were a cheap longlasting enclosure method, especially if wood or stones weren't easily available.