If a tree branch shakes when there is no wind, it's a SUDOWOODO, not a tree. It hides from the rain.
It mimics a tree to avoid being attacked by enemies. But since its forelegs remain green throughout the year, it is easily identified as a fake in the winter.