It's registered by IANA - Internet Assigned Numbers Authority and is reserved for general usage when some wants to refer to a generic domain. See https://www.iana.org/domains/reserved. You can connect to www.example.com where you will see the message "Example Domain
This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission."