Stars twinkle because their light passes through turbulent air, bending randomly. Planets don't twinkle because they appear as small disks, not points-light from different parts cancels out the flicker. This is atmospheric scintillation in action.