Web hosting is a service that enables your website to be accessible online. When you pay for web hosting, you’re essentially renting space on a physical server that belongs to the web hosting provider. The web host stores all the necessary files and data to make your website functional on your behalf.
Whenever someone tries to access your website, their browser sends a request to your web host’s server, which then retrieves and displays your site on the user’s end. Without web hosting, nobody would be able to access your website.
See also: Dedicated hosting, Managed hosting
Further reading: How Does Web Hosting Affect SEO and Your Ranking?