The function of shaping circuit is to convert sine curve into square wave pulse signal.
Because the output of incremental encoder is a pulse signal, a shaping circuit is needed in the encoder.
Of course, you can also use a microprocessor to realize the above pulse (shaping), but in terms of circuit scale,
Or in terms of price, it is not worth the effort.