By the same token: Power generators (solar panels, wind turbines, coal/nuclear/ whatever) break down, and need replacement.
Trees have other benefits too - potentially very long lifetimes, self-repairing, self-replacing, improving water tables, improving/generating/retaining soil, and can be used for building and in other processes once they reach maturity.