This has been discussed to death here but:
- The CD is a common, portable, endurable medium. I can take a CD to my friend's house and play it there. I can play a CD in my car. I can play the CD in a 30-year-old stereo. I do not need to remotely care about compatibility, did I bring the right dongle etc.
- I pay for a CD with an upfront one-time fee and own it forever. It does not suffer from recurring fees and the licensing cannot expire.
- I have the option of ripping a CD onto other media if I want, or burning it to another disc, or copying to cassette, I own it. (Resale / sharing becomes legally iffy in places but that's not a medium limitation. In fact, the vibrant used market is a contributing factor.)
- The process chain for the digital stream already compensates for the mechanical concerns you mention, and that's also why we mock the audiophile nonsense - the correction is already built in
- The CD was designed to last for decades and is incredibly resistant to scratches, fingerprints etc. A CD is likely to outlive any specific spinning rust / solid state device you would copy the data to.
- As such, a CD player can and should return a bit-perfect stream on the digital end limited only by Red Book standards (DAC performance may vary.)
This should not be read as 'the CD is superior to X' but more 'the CD remains a viable non-obsolete alternative' in ways that, say, are not true for vinyl / cassettes / older physical media.