When you develop a website, unless you publish it on the internet nobody can access your website.
A web hosting provider rents out server space to such website owners for hosting their website on the internet. Once this is done, any user on the internet can access your website by typing your web address in their web browser.