In simple words, I can say that WordPress Hosting can be Web Hosting, but Web Hosting is not a WordPress Hosting.
For some instances, typically, web hosting relates to a sort of shared hosting where multiple websites share the space and computing resources of one server. But web hosting also covers other configurations like cloud, VPS, and dedicated hosting.
WordPress is the most commonly used content management system. You need hosting to use WordPress on the web. You just need a Linux-based hosting account that supports PHP and MySQL to run WordPress effectively. But in basic shared hosting plans, platform-specific features and optimizations not usually included. WordPress hosting plans come with web application firewalls, automatic updates, SEO, and caching plugins. That's why most people go with WordPress Hosting for implementing ideal security, performance, and development practices.