Let's make a diagram of the tree, ground and inclination of the rays of the sun, so we understand what right angle triangle we have. Please see the attached image.
Notice that our unknown is the angle , and that we know the size of the side opposite to it, and of the side adjacent to it. Therefore the most convenient trigonometric formula to use is the tangent of the angle because: