The constraint removes the need to model the contacts between the teeth. It simply models the relation between the rotation of the gear and the lateral movement of the pinion. This sort of construction is common enough to warrant a specific feature to model it in the physics simulation.