Most dedicated hosting packages from “standard” webhosts (GoDaddy/HostGator types) are pretty pricey, and I think with good reason, since you’re basically renting a remote computer, and service for same.
But… Isn’t what Digital Ocean (and others) provides essentially the same thing (once you install a LAMP or LEMP package which takes under a minute), for just $5 - $20 per month?
No, or they would have already. The hosting services you mention in your first post offer the convenience of having someone else maintain the server. Digital Ocean, AWS, and other DIY services require you do some googling to get up and running.
It’s a cost balance, some people prefer “the easy button” while others may prefer the pricing or control of a DIY provider.