Increases downforce for more normal force/traction
Spoiler
Disrupts airflow over the top of the car to prevent lift from being generated by fast airflow over the top of the car and slow airflow at the bottom
Drafting
Cars get sucked together due to airflow being faster between them (less area to travel through, which is the application of the continuity equation), so a lower static pressure is created between the cars