How do I sync my music library from my iPhone to my MacBook Air?
iTunes does not sync non-purchased music (or movies or tv shows) from a device back to the computer. You will need third-party software on the computer, such as iExplorer, to complete this.

(I swear there was another question like this that has been answered before, but I couldn't find it.)