Like most fruits, water makes up a large percentage of the fruit. When the soil becomes dry, the fruit forms a tight skin in order to prevent moisture loss. However, once a sudden surge in water returns, the skin expands. As a result, the watermelon bursts. Another possibility, in addition to water, is heat.