
Consider a free-body diagram of the large gear. A torque from shaft is applied to the large gear in the direction shown.
The teeth of the small gear exert a force on the teeth of the large gear. This force opposes the direction of rotation of the large gear.
The large gear must be in equilibrium; therefore, the sum of moments about shaft must equal zero.