But not true. I have CDs that are 20+ years old and still work. It comes down to the quality of the manufacturer's product, much like any other product or service you would spend money on.
I always store my optical media in plastic boxes, spindles or envelopes, at room temperature, usually in cabinets or drawers. But if you use them frequently they accumulate scratches and stop working. Only if you don't really use them, if they are used for one-time backup and properly stored, will they last. But you can say the same for USB sticks too.
I have a few floppy disks that still (probably) function simply because they were stored in a box for the last NN years (for sentimental purposes). That doesn't mean floppy disks are reliable.