During your free trial you can download or stream tracks from Apple Music. At the end of the free trial, assuming you cancel the subscription renewal that might have been set up, anything you've downloaded will cease to work. While Apple Music is active you can still purchase content from the iTunes Store that you want to own and keep. Perhaps you've used the store rather than the Browse section of Apple Music, which is why you're seeing a price to pay.
tt2