I think there's a lot of expectation bias when people say a
(expensive) CD player sounds better than ripped CDs. For a lot of people in the HiFi hobby world it's completely counterintuitive that CDs ripped with a 20 euro (or pound or dollar) DVD drive by amateur software like iTunes can actually give you better sounding files when these files have been ripped to lossless files with error correction.
But if you think logically, basically we are looking for files that have the same bits on them as were pressed on them in the factory, so a perfect copy of the master that was used to produce the CD. The chances that we get the perfect copy from a rip and then play that rip are obviously greater than by using a CD player where the error correction has to be done on the fly rather than by a computer that will take as long as it needs to correct any errors. A properly ripped file is therefore a bit perfect copy of the master that was used to create the CD.
It's very similar to the fact that some people actually believe that an expensive HDMI cable must give a better picture than a cheap one. In the digital domain it doesn't matter what cable is used as long as the cable isn't faulty and bits are lost on the way. A printer doesn't print better or faster if you use a gold plated USB cable.
The biggest problem with modern CDs is the fact that the masters that were used to produce often sound like sh•t so the rips will sound like sh•t too. Properly mastered CDs however are a thing of sonic beauty. Many modern jazz and classical recordings are absolutely wonderful.