Web hosting is a service through which your website will be on 24 hours a day and 365 days a year. In addition, the website can be displayed worldwide.
For example, you have a business store and just registered a trade license for that store. So will any people come to your store? Buyers are likely to call everyone who looks appropriate if there are only a few. At the same time, the bigger your store, the more items you can keep and sell to those buyers.
Similarly, if you only want to display the domain worldwide after you have registered or purchased the domain, design it to your liking, it will only display as long as your computer is on or off. Because no full-time hosting package has been purchased for your website.
Basically, you need a space to keep your website content, images, videos, and various files running 24 hours a day and 365 days a year. And that designated space is called website hosting or web hosting. Hosting is usually called a server and sometimes it is also called a web server.
But you can also put your website on your own home computer or PC if you want. But does your home PC run 24 hours a day and 365 days a year? So everyone usually buys different types of hosting without any risk of saving some money.