When butter melts, it changes from a solid to a liquid state due to an increase in temperature. The heat causes the butter's molecules to gain energy, allowing them to move more freely and break apart from their solid structure.