In the early years of domain names, the extension was meant to have meaning. For example, .com for commercial oriented businesses, .org for organizations, and country codes representing a site based in that country.
Over the years most restrictions were dropped, and many extensions can be used...