It's a mutualism relationship because both species can benefit from each other.
The Hertzsprung-Russell diagram is one of the most important tools in the study of stellar evolution. Developed independently in the early 1900's by Ejnar Hertzsprung and Henry Norris Russell, it plots the temperature of stars against their luminosity (the theoretical HR diagram), or the color of stars against their absolute magnitude
Depending on its initial mass, every star goes through specific evolutionary stages dictated by its internal structure and how it produces energy. Each of these stages corresponds to a change in the temperature and luminosity of the star, which can be seen to move to different regions on the HR diagram as it evolves. This reveals the true power of the HR diagram – astronomers can know a star’s internal structure and evolutionary stage simply by determining its position in the diagram.
The Hertzsprung-Russell diagram the various stages of stellar evolution. By far the most prominent feature is the main sequence (grey), which runs from the upper left (hot, luminous stars) to the bottom right (cool, faint stars) of the diagram. The giant branch and supergiant stars lie above the main sequence, and white dwarfs are found below it.
When in a certain situation, organisms with traits more suited to survive in that situation often survive more often and are able to reproduce more, which means that their genes eventually dominate the gene pool.
For example: take a light moth population and a dark moth population. They live in a forest with dark trees, so the dark moths blend in more and are harder to find and hunt. As a result, more of them survive than the light moths, so more of them are reproducing and passing their genes along.
Over time, those genes may become the only traits of that variety that the organism can have, so they grow to evolve and adapt to their surroundings.