# Why does neopentane have a higher melting point than n-pentane?

Why does neopentane have a higher melting point than n-pentane?

I know that we can say that, due to stacking, it has a higher melting point as it freezes easily. But then, why doesn't this happen in the case of n-hexane too?

n-Hexane has a melting point of −95 °C whereas 2,2-dimethylbutane has a melting point of −98 °C. Instead, if we go by stacking, 2,2-dimethylbutane should have a higher melting point.

image source