It's a matter of beam design. Consider a bridge. The longer the span, the deeper the girder section (vertical dimension) for the same load.
A beam being flexed (like the middle of your deck) compresses on the top and stretches on the bottom, from end to end. (Flex a deck of cards to see what I mean.) The location thought the beam's vertical dimension where the transition from compression to tension is the neutral axis. Material at the neutral axis adds no strength to the beam and, as you might expect, material close to the neutral axis contributes only a little strength. The material furthest from the neutral axis contributes the most strength and is the limiting factor in material stress for a beam design. So... thicker boards are stronger, hollow boards are lighter. For a basic rectangular beam shape (think of a wooden plank) the strength of the shape (Moment of Inertia, for you engineering enthusiasts) is directly proportional to the width but varies as a cube by the depth. What does that mean?
Take a 2" x 4" bar.
If spanning a gap while laid flat: I = 4in x (2in)^3 / 12 (2 2/3 in^4)
If spanning a gap while stood on edge: I = 2in x (4in)^3 / 12 (10 2/3 in^4) Four times as strong!
Place the material further from the neutral axis for greater strength.
Ribs, gussets, bracing, etc. are to resist buckling of compressed areas and inward collapse of curved tensile areas. 3D printing offers almost unlimited opportunity for creativity and flexibility of design in bracing and support - honeycombs, lattices, curves, continuous variation in profile thicknesses, perforated beams/ribs, etc.