A star is an actor who has a principal role in a movie or a show. Hollywood is full of actors that are stars. Stars can also refer to the luminous points seen in the night sky. Astronomers are people that observe and study objects outside of Earth, these include stars, planets, moons and comets. This joke is playing on the word "star" and its different meanings.
The astronomer became an actor because he always wanted to visit the stars .