You are still anthropomorphizing. The tree doesn’t want anything. It is a structure of chemical reactions. Sometimes there are mutations that lead to new features. Sometimes these features confer success in the environment at the time. Sometimes that success leads to this new mutant taking over relative to the others. Fast forward billions of years and we go from a sludge of singe celled microbial life to every tree you can see.