Not so much that the aircraft is stronger with fuel in the wings, as a limit on the bending moment at the wing root.
The more weight in the fueslage, when that weight is supported by the wings produces stress at the wing root. Fuel (stored in the wings) has it's weight suported along the wing, and doesn't provide the same bending moment.