When it says, "Tov haeitz l’maachol — The trees were good for eating" in Gan Eden, it meant it was good for Adam. It was his purpose in life to eat that and he thereby became elevated. If he would have remained in Gan Eden he would have achieved by means of the fruits of Gan Eden the most perfect results which Hashem had hoped to have from him.
The sweetness of the fruits and the beauty of the fruits all combined for the purpose of achieving the summit, the acme of daas Elokim (knowledge of Hashem). — Repenting in Happiness (#E-160)