On the other hand, 80s club music is presumably mixed with vinyl distortion (and other features such as rumble/crackle - not to mention analog tape hiss from the original recording) in mind.
A well-mastered digital recording should (and does!) sound great, but I think the problem is that many CDs aren't well mastered and many are overly compressed, often in service of the dreadful "loudness wars."
In 2022 most dance music is produced digitally to begin with, and presumably mastering engineers and DJs have figured out how to make it sound good when it's played in a club.
I wish replay gain was standarized to a level where every player could just add few DBs in analog way for those songs that use more of the dynamic range, instead of mastering engineers having to choose between "loud" and "correct"
But the main reason records usually sound better is simply dynamic range.
I'm a huge fan of 80s club music (Paradise Garage type stuff). I've spent a lot of time and money over the years ripping those original records, because unfortunately the digital releases of a lot of those songs were brickwall limited, which ruins the dynamics and punchiness of the drums and other elements of the music. I'm sure the same applies to other genres.