To avoid being attacked, it does nothing but mimic a tree. It hates water and flees from rain.
If a tree branch shakes when there is no wind, it's a SUDOWOODO, not a tree. It hides from the rain.