These are different types of tasks within supervised learning. Classification is concerned with predicting the correct category variable, which is discrete. Regression, however, is used when the output is continuous, usually numerical.