A browser needs evidence that it reached the website named in the URL. A TLS certificate includes an identity and a public key. The browser checks several properties before trusting that identity.
Web Security · Lesson 3
Certificates
Learn to check the name, validity dates, and issuer shown by a TLS certificate.