Who told you that the crystal oscillator outputs a square wave? The output of the crystal oscillator itself is a sine wave, which is transformed into a square wave for clock use after being shaped by the flip-flop. How can a crystal oscillator structure produce a square wave? I don’t know who taught you. All oscillator circuits cannot directly generate square waves, only sine waves and triangle waves.