Spoiler diverts air over the top surface. Wings allow air to flow over the top and bottom surface, either makinig lift (eg airplane) or downforce (Formula one).

MA