Ecological pyraminds were made to give an easy showcase of how earths ecosystem works.
trophoc levels are a part of the food chain, and the 10% rule is the amount of biomass that is carried up the food chain, all of which are involved inside ecological pyramids.
Ecological pyramids is a human construct used to help break down the complexity if an ecosystem. This is because they are separated by trophies levels which makes it easier to understand the ecosystem