Oh I see, you said “ Apple Music”,
You need to choose what syncs when connecting your iPhone to the Mac
When you connect an iPhone or iPad to your Mac using a USB or USB-C cable, the device appears in the Finder sidebar. When you select the device in the sidebar, the Finder window displays options for managing your device software and syncing items with your Mac.
About syncing your Mac and your devices - Apple Support
By default, your Mac syncs your device whenever you connect it. To confirm that you want to sync whenever you connect, select General in the button bar, then deselect “Automatically sync when this [device] is connected.”
If you're using macOS Catalina, use the Finder to sync content to your iOS or iPadOS device
https://support.apple.com/en-ca/HT201253
See the help article below to customize it:
Sync content:
https://support.apple.com/en-ca/guide/mac-help/mchlde9a31f1/mac