To avoid attack, it mimics a tree. It will run off if splashed with water, which it hates.
To avoid being attacked, it does nothing but mimic a tree. It hates water and flees from rain.