In Formula 1 they have the Drag Reduction System (DRS). This reduces the drag on the straights to optimise speed and increases the downforce in the corners to increase handling. This makes sense to me.
I sometimes find myself following a posh car, usually a porsche, that has a retractable spoiler. These generally seem to have the opposite action, in that when the car is cruising on the motorway the spoiler will be up, presumably increasing drag and reducing fuel efficiency, and when the car turns off the motorway, slows down and approaches a roundabout the spoiler drops, presumably reducing downforce and roadholding.
What is the logic behind these systems?