The sword was stuck in the tree because it grew up around it.
Who is "it"?
the tree