In the Music app Availability of Apple Media Services.
You can separately choose audio quality settings for Wi-Fi streaming and downloads.
Go to Settings on an album page or in Now Playing.
For more information, see the Apple Support article About lossless audio in Apple Music.