What is the cause of tooth demineralization in the whitening process?

Teeth are not demineralized with the appropriate quality whitening treatments, a transient variation in their structure appears, observable only under the electron microscope.