When you cook corn on the cob, part of its water content evaporates. This can cause air pockets to form between kernels, which makes them stay intact even after boiling.