To stop the pasta from cooking. I also wouldn't want to mix warm pasta with the cold prepared vegetables as that could cause them to become soggy.