One of the schoolrooms is in such a state of disrepair that a big tree sits in the middle of it. A swing is suspended from one of its branches. When you approach, the swing will move and a creepy song will play.
The tree is not integral to any particular puzzle, nor really an obstacle. Instead, it helps to set the spooky mood of One Leaves.