This comes from Sir Thomas More's book *Utopia* (1516), where he describes an imaginary island nation with a perfect social, political, and economic system.
The word "utopia" has since become synonymous with any ideal or perfect place, even if it's ultimately unattainable.