For 9 out of 10 self hosted programs you can have them up in ~5 minutes with a docker compose and env file.
There are whole OSes built around it, like casaOS which gives users a neat front end/dashboard for their self hosted stuff.
Also for cost eh idk. For $300 you can have enough hardware and storage to self host everything, even a Google photos alternative. Most people spend much more than that on subscriptions for storage, streaming, etc. I guess a UPS is necessary and adds a bit of cost. There are also plenty of pre-built kits for this.
I do agree that it isn't for everyone. Its finicky to get just right and security can be very annoying. Security is already a crapshoot though so I'm not sure that's necessarily a ding for self-hosted.