Which statement explains the role of bacteria in the ecosystem ?