Because whatever grows there, dies there, and the nutrients remain there. Since wetlands are mostly flat with stagnant or slow moving water. The wetness also keeps the nutrients in place, unlike dry places where the nutrients can be blown away or eroded by water