For data discs (or more accurately, the data portion of a disc, because some discs have other types of content on them too), the drive essentially functions as a standard random-access block device, just like a hard drive or floppy disk. The error correction etc is still hidden from you, but as long as your entire disc is just data, there's an easy, obvious thing to dump: the bytes of that block device.
On top of that, the audio extraction mode (in the drive) is usually optimized for constant-time delivery rather than accuracy; if an audio sector is damaged, most players will opt to deliver inaccurate data rather than stop the audio stream altogether.
On a data CD, those 2352 bytes are split in 2048 data bytes, plus an additional 4 error detection, 276 error correction, plus some other bytes including an address. So there is an extra layer of error correction.