Note that this isn't a problem in wood frame buildings built with proper sound insulation, so it's more that regulations in many municipalities allow weak sound insulation, and developers build to the cheapest spec possible if there's no compelling reason not to.