You can have quiet and soundproofed dense living. It just takes some standards and codes to take it into account.
NotJustBikes recently made a video about how some Dutch cities are taking this very seriously ( like Delft), and how it works ( Cities aren't loud, cars are is the video name). In France good soundproofing is mandatory on new constructions, etc. People and regulators just need to care :)