The ferns give the primary consumers a place to hide from the secondary consumers and is also there habitat.
Most wild ferns prefer a moist woodland habitat with high humidity. However, there are ferns suited for all environments from rock cliffs to swampy bogs