This is because the polyurethane foam used to make memory foam has had chemicals added to it. These chemicals modify the viscosity and density of the foam making it viscoelastic. That term means that the foam is designed to be sensitive to heat and weight. If a heavyweight, such as your body, lies on the foam, it softens and conforms to your body shape. The same happens if it is heated – such as the heat from your body when sleeping.