Motors spin fast but weakly. A gearbox trades speed for strength so the joint can lift loads. Too much gearing makes a joint stiff and harder to move by hand.