How do your optimise “WordPress hosting” beyond installing caching and say wordfence in WordPress.
i don’t get what optimisation they can do at the server end for those lol
Some premium, specialised hosts run WordPress in a containerised environment (a bit like a virtual machine for each installation). Resources are therefore entirely isolated and the site can call upon them without sharing with other sites, processes or the host OS. This is also inherently more secure and stable than shared hosting, as cross-site infections can't happen and software conflicts are less likely.
Firewalls and intrusion detection tools can be tailored to WordPress, rather than a broad approach for generic threats.
PHP can be compiled with just the modules needed for WordPress, and nothing more. MariaDB and Nginx servers can be used rather than MySQL and Apache respectively, providing superior performance. Generic hosting providers need to provide more general capabilities, which slows code execution down slightly.
They're often built on cloud platforms (AWS, Azure, Google) for added redundancy. These are typically tied into CDNs which deliver fast connections across the world. They'll typically have uptime monitoring and alerts built in - and some premium hosts will clean your site for free it it's hacked.
They have enterprise-level staging facilities. These let you duplicate site and test changes (or even simple updates) before pushing the staging site live.
Some shared hosting providers offer some aspects of these. You can bolt on some features, such as using Pingdom for uptime monitoring. But the all-in-one service can pay for itself.
It's not for most blogs, but once you get to a particular scale it's worth it.