All the machinery/ electronics and the electrical cables to move, operate and power up these weapons don't sit on the outside of the ship but are all internal. Hence they take up space.
Go on a modern warship. For the Weapon Systems most of the machinery and missile storage is all internal and only a small part of the whole system is external.
'I would like to be half as clever as some people like to believe they are' Life is full of disappointments, it is how we handle them that helps to define us, as a person