Sagot :
Planets are formed inside giant clouds of gas and dust that begin to rotate and collapse in on itself until it forms a star and planets. The rotation of the planets, is the left over rotation from the gas cloud that formed the planet.
The cause that planets rotate is because of the axes (plural for axis) that are responsible for the rotation of the planets. It has nothing to do with atmosphere.