Stars emit a smaller portion of their energy in the infrared spectrum, so nearby cool objects such as planets can be more readily detected.
What objects emit less of their energy as infrared light versus visible light?
Stars