Another way to say "a tree is for shade" is "Trees are useful for providing shade."