It doesn't mean cargo compartments are not cold, dark, loud, and unpleasant places to be, but they're pressurized.
If you pressurize a cylinder (say, a more or less round airplane fuselage), the stresses become tension stresses around the perimeter - it's trying to inflate the balloon, but the perimeter is designed to handle these stresses. The floor only has to support the weight of passengers.
If you had an unpressurized cargo hold, the floor would now need to not only support the weight of passengers, it would have to support the entire pressurization weight - which is far harder, because floors are typically flat. It would have to be far stronger and heavier.
There have been several aviation incidents from the cargo doors opening in flight - the DC-10 was particularly prone to the problem, because instead of an inward-opening, "plug" type door (where the pressure holds it in place), it had an outward opening door - more cargo space because the door doesn't swing in, but if the latching mechanism fails (which it did), the pressurization tries to push the door open, and it occasionally succeeded.
https://en.wikipedia.org/wiki/McDonnell_Douglas_DC-10#Cargo_...