Dogs shake themselves (the same shake they do when they get out of the water) to ease tension or to signal they are moving on from one thing to another.
You've probably noticed your dog shaking his body immediately after meeting a new dog, after ending a play session or after returning from a walk.