The majority of music made before about 1992 was made to go on vinyl.
Writing, recording, mixing and mastering. The whole process was done with vinyl in mind. So when people say that music sounds better on vinyl then they aren't wrong, but it depends on which release from which era you're talking about.
For newer releases that isn't quite the same, but a lot of dance tunes up until the early 2000s were also made for the format.