Sweat is your body's way of cooling itself off with evaporation, and oil keeps your skin hydrated. On the down side, oil and sweat can clog your pores, causing annoying pimples.
Sweating can be a great way to clean your skin, and it pushes the dirt out of the pores -- as long as you clean your skin afterwards, otherwise you just worsen the situation.