Happened to me too with apple music in November 23. They just deleted my account with my playlists and listening history. Even support couldn't tell me why after countless calls and emails. This implicitly canceled my yearly subscription and refunded only a small part after I requested it. I learned my lesson about Apple.
Take it as a lesson about SaaS and closed ecosystems in general not just Apple. Any dependencies on 3rd parties can be broken at any time without recourse be that Steam, Amazon, Google, Facebook, Apple, or less obvious services on smart devices.
Difficult to avoid though for some cases like streaming. Fortunately I had a backup of my playlists. Still annoying. I wonder if those kinds of things happen with spotify as well. Because once your subscription ends you're only relegated to a free account, not deleted.