Because prawns cooked easily, therefore they are added last to prevent them from turning hard if they were to be cooked for too long.
Pasta has to be cooked till "al dente" stage (In wikipedia, it simply means cooked to be firm to the bite), and this takes approximately 10 minutes.