Why does organic compounds change color when heated?

It changes the molecular structure when heated