I helps equalize the pressure differences that can build inside the hull and the outside.
A hull heated in the sun which is then put into the sea can see pretty large differences in pressure. Just try putting some boiling water into a plastic bottle, seal it, wait a minute and then put it into cold water.
If the hull is airtight but flexes, pressure can build and also do damage to the hull (at least I have heard so)