Why do squirrels have tails?

So they can keep their balance while jumping, scurrying, eating, and staying on trees.