it could be argued that since a BB is much more than 4 times the size of an escort, density has been taken into account. you could reason that BBs would also have greater power/space reserves for better turrets, and density would all depend on turret 'range' too. if a 1km escort had a turret at each end with a 1km range each, it would have a coverage of 2 turrets/km. if the range was 2km, it would have a coverage of 2 turrets/km, as there are only two turrets. scale this up to a 10km BB, and the 1km range turrets have the same coverage, but the 2km range turrets have a coverage of 4 per km.
this is obviously very simplified, but if the turrets have a very large range compared to ship size (and massed turrets suggest they do) then suddenly actual numbers of turrets makes a significant difference.