Similar to a car with a separate fuel tank, the wings on aircraft are watertight and designed to hold aviation fuel. Having spars built between sections of the wing also stops the fuel from sloshing around. These spars have holes in them that let fuel pass through but at a much slower rate.