It is worth clarifying at once that there is no exact answer to this question. Scientists have only speculation about a strange temperature difference between the atmosphere and the surface of the celestial luminary.
The sun is heated from the center (core). The core heats up to twenty-seven million degrees Celsius. Also, according to the laws of physics, the temperature decreases as the distance from the center of the star increases. The surface of the Sun heats up to six thousand degrees Celsius. However, the Sun’s atmosphere heats up to one million degrees Celsius. This already raises questions.
It is logical that there is some force that causes the envelope to reach such temperatures. Most scientists agree that the Sun’s magnetic field is to blame. They believe that the magnetic field pushes heat through the surface into the atmosphere.
The Sun’s magnetic field lines are many loops. They behave chaotically and constantly change their shape and direction. At the moment the loops come into contact, there is an explosion, which scientists believe heats the Sun’s atmosphere.
To understand the processes occurring on the surface of the star, modern solutions and technology are needed to analyze magnetic waves. For now, scientists have developed the HACA Parker solar probe. It flies in an orbit close to the Sun and measures the Sun’s magnetic field.