On the Emergence of Weak-to-Strong Generalization: A Bias-Variance Perspective