All parts of land plants cannot be eaten by herbivores.
A large fraction of the biomass that land plants produce, such as roots, trunks, and branches, cannot be used by herbivores for food. Leaves are the major food source for herbivores. So proportionately less of the energy is received by primary producers in terrestrial ecosystems. This is the reason why terrestrial ecosystems have smaller food chains or lesser trophic levels than marine ecosystems.