Why were the terms galaxy and universe once considered synonymous by astronomers?
Answer
Because the Milky Way was believed to be the entire universe
Prior to the early 20th century, astronomers held the belief that the Milky Way represented the entirety of the universe. Because of this outdated understanding, the terms were used almost synonymously. It was only later that observations revealed the Milky Way is just one of billions of galaxies scattered throughout the cosmos.

Related Questions
What defines a galaxy as a structure within the universe?What are the three primary classifications of galaxies based on visual appearance?Which components comprise the totality of the cosmos?Which two major galaxies dominate the Local Group?From which Greek word does the term galaxy originate and what does it mean?What is the etymological meaning of the word cosmos?How does the scale of the Milky Way compare to the cosmos using the Earth analogy?What role does dark matter play within the structure of a galaxy?Why were the terms galaxy and universe once considered synonymous by astronomers?How do the boundaries of a galaxy differ from the boundaries of the cosmos?