You don't just wrap a cake in a bag, toss it in the bottom of a ship and expect it to be in good condition when it arrives on the other side of the world.
Metal and wooden crates/boxes did the same job then as cardboard boxes do now.
Well, clearly they should have made the box from fruit cake rather than metal, since the cake looks to be in better shape (no, I'm not entirely serious)