Lubrizol Interview Question

What is the difference between regression models and classification trees/random forests in terms of what they optimize?