rotation of planets

No.11459185 ViewReplyOriginalReport
why do planets rotate?
i mean i understand why they keep rotating but why do they rotate in the first place, gravity doesnt cause the rotation as gravitational torque is zero so why do they rotate