Unlike planets, stars produce their own source of light. Planets just reflect the light coming from another star like the sun.