The LORD God planted a garden

Sunlight filtering throught leave of a knarled tree in the fall

Genesis 2:8-9 is topical, not chronological. God planted a garden on the third day, and man was created on the sixth day. Since the garden was made for the man, then that's how it's described.

The Tree of Life

In the Bible the tree of life is used to refer to an actual tree which has leaves and fruit, but it's also used euphemistically to refer to the fruits of seeking and gaining wisdom.