Why the planet 'Venus' is called the morning or an evening star?

Why the planet ‘Venus’ is called the morning or an evening star?

Venus appears in the eastern sky before sunrise and sometimes it appears in the western sky just after sunset so it is called as the morning or an evening star.