Why are planets in the solar system visible from earth even though they don't give out light?

Nearby planets like Mercury, Venus, Mars can be seen form earth through naked eye. But their visibility is low and are seen only during special occasions.