All of the major music streaming services have an offline mode.
https://support.apple.com/guide/iphone/add-music-and-listen-...
https://support.apple.com/guide/iphone/add-music-and-listen-...
The problem isn't lack of data service on ships. It's things stopping to work offline.