CDs as a rule are not compressed at all. They present the full Red book audio signal in non comprsssed format.This statement is false. CDs have the expectation of being played in a car and so dynamic range is compressed. In most cases... Its an industry thing, not a technology thing.
When we master an LP at our facility, we request the master file or tape from the producer, not the one used for CD release. This is to avoid the compression that is usually on the digital release. Because LPs are not expected to be played in a car, they tend to have less compression unless the record label is being cheap about it.