Obviously, cars need different things when they're doing different things. For top speed, a car needs low drag. For grip, it needs a lot of downforce. Not having a spoiler is better for straight-line speed, but a spoiler adds a lot for cornering. Active aerodynamics make sure that the car is in whatever shape is most useful at the moment.