To solve this problem let's illustrate the box as follows:
As we can see above, even there are 8 cubes inside the box, there is still a space left represented in red. So, we can't say the box is 8 cubic units but the box is 8 cubic units plus the left volume on the top.