As the earth surface is protecting the molten material present at the center of the earth that has different propeerties than the material on the earth surface.
The hard boiled egg also consist of yolk at the center consisting of most the nurtients and different properties from its surface. The outer shell of the egg protect the inner side of the egg.
Thus, the hard boiled egg can represent the earth model.