"To hug a tree" means to physically embrace a tree by putting your arms around it. It is often used as a figurative expression to describe someone who cares deeply about the environment and is passionate about protecting nature. Full definition
My feet started itching shortly after school when my inability to sit still and desire to hug trees from all over the world took over. (castawaywithcrystal.com)