It is named this because cubing a number gives the volume of a cube.
Cubing a number can also be written as 63 = 36. Cubing is the same as raising to the power of 3.
Many of the units of volume are cubes. For example, a cubic meter means the volume equal to the volume of a cuboid which is one meter tall, one meter wide, and one meter deep.