Spoilers and other aerodynamic devices such as wings and diffusers increase the performance of a vehicle.
Car racing has been around since the invention of motorised vehicles and has always been a way for car manufacturers to test new concepts and prove the durability of their cars.