Web hosting allows you to upload your website files to the internet. Anyone can access your website from anywhere on the internet. It is usually the service that you receive from a web host provider.
Although you could theoretically host a server for your website from home, there are many benefits to using a web hosting provider.