Why shovel snow of the roof?

Shoveling snow off a roof to prevent ice dams?