Why Do We Need Warm-up? A Theoretical Perspective