Here's why:
* Blackbody Radiation: Stars are like blackbodies, meaning they emit light at all wavelengths, but the peak intensity of their radiation depends on their temperature.
* Wien's Displacement Law: This law states that the peak wavelength of a blackbody's radiation is inversely proportional to its temperature. So, hotter stars have their peak intensity at shorter wavelengths, which correspond to blue light.
Therefore, while hotter stars emit more light overall, they also emit a larger proportion of their energy at shorter wavelengths, making them appear bluer.