The clicking sound is produced by the cleats when they interact with the pedals. They are loose enough to give out this sound. You would need to tighten the cleat bolts to make this sound disappear. However, sometimes the pedals also start creating a squeaking sound especially when they are old and worn out. Adjust the pedal tension to see if the sound goes away. If it doesn’t then it might be time to replace the pedals.