Given the following formula, use natural deduction to prove that it holds.
The answer given by the professor was the following below:
I would like to understand how we can discharge the assumption of phi at the bracket 3 without actually deriving it from the tree itself like psi at the bracket 2?


Yes.
See e.g. Dirk van Dalen (1997) "Logic and Structure", p. 34:
The semantic justification for this is monotonicity (also known as weakening): We have that
By the deduction theorem, it also follows that
If a conclusion can be established from a given set of premises, then it doesn't "get lost" by adding additional knowledge, so we can always add more premises or antecedents that are not actually being needed. This semantic idea transfers to derivations.
The same applies to all other rules that allow to discharge assumptions, i.e. $(\lor E)$, $(\neg I)$ and $(RAA)$.