Converting continuous rotation to oscillatory motion.
Using one crank more and gear drive reduces the spring deformation. See “Cable drive 12a” of this channel for comparison.
Beside creating friction between the yellow wheel and the cable, the spring compensates velocity difference of the cable ends caused by the two cranks.