The reason this hard-boiling technique works so well is really pretty simple, but it helps to know a little bit about how eggs work.
Eggs consist largely of protein — mixed with mostly water in the white, or albumen, and mixed with fat and water in the yolk. When the eggs are raw, the proteins are like strands of yarn curled up in little balls. As the eggs are heated, these strands relax and unfold. As they unfold, they bump into each other and link up. (Fun fact: This is why egg "whites," which are clear when raw, are white when cooked — the unfurled, linked-up proteins block light from passing through.)