It’s more that a CD is just a physical copy of a digital file. Buying a CD and buying a mp3 file are basically the same. People buy records because they have this idea that “analog sounds better”(despite modern record players being digital as well - it’s the tubes, not just the record, that made it analog)