That’s not the mediums fault. I’m sure during the 70s and 80s there were equally horrible vinyl masterings.
I have a record collection and a cd collection. It was not the same. So many CDs of older music sound bad on CD. Recordings made during the CD era sound fine though, but I'm not an audiophile. Maybe the "loudness wars" are a complaint for some.
It is partly the medium's fault. A lot of the sins of CD/digital mastering wont fly on vinyl because there's physical constraints around what you can literally press into the record groove.