Trees also cool their environments through evapotranspiration as well as literally converting sunlight into sugars. There's more benefit than just carbon capture per se.
To be fair, all other carbon capture technologies are still net-positive emissions-wise, after accounting for (what's typically dismissed as mere) externalities. The fact that trees, ie forests, are net-negative and also have other benefits (QoL for lots of organisms, increased biodiversity leading to resilience, etc.) puts them at the top of the list in this category for me.