A CD recorder writes data to a CD-R disc by pulsing its laser to heat areas of the organic dye layer. The writing process does not produce indentations (pits); instead, the heat permanently changes the optical properties of the dye, changing the reflectivity of those areas.
I don’t know why we called it burning. Fire was not involved. We could have just called it “copying.”
From the Wikipedia article.
https://en.wikipedia.org/wiki/CD-R#Writing_methods
You know how you can use a magnifying glass to burn stuff with sunlight?
It was basically that but with lasers.