Predicting Through Generation: Why Generation Is Better for Prediction