Those cocoon-like structures covering those trees are giant spider webs.
Webs allow a spider to catch prey without having to expend energy by running it down. Thus it is an efficient method of gathering food. However, constructing the web is in itself an energetically costly process due to the large amount of protein required, in the form of silk.
In addition, after a time the silk will lose its stickiness and thus become inefficient at capturing prey. It is not uncommon for spiders to eat their own web daily to recoup some of the energy used in spinning. The silk proteins are thus recycled.