Energy is mass. The sun is radiating a lot of heat, so of course it's losing mass.