This ckt uses three cascaded low pass filters to filter out higher frequencies and gets u a pure sine wave
The opamps are just used to remove the loading effect
Fourier transform of a periodic square wave is a series of sine waves of 1Wo, 3Wo, 5Wo ....
Wo=frequency of original square wave
Hope this helps 😊