I believe the purpose of adding salt to boiling water for pasta is twofold.
1) By adding salt to water for boiling - this increases the temperature at which the water will boil - which will help the pasta to cook more quickly.
2) Adding the salt to the water will actually salt the pasta better - instilling the flavor into the pasta as opposed to just adding it on top of the pasta...