By providing a variable name in the function declaration (line 30), you can refer to variables passed to the function as named variables (line 32). This is for readability and convenience. If you didn't do this, you would have to rely on the function's arguments array.
Since addTileMap is passed to TiledMapServiceLayer as a callback, addTileMap is called when the layer loads and the newly loaded layer is passed to addTileMap as an argument.