I'm not sure, but you can look at GitLab, WordPress, and Sentry[1]. All of those can be run fairly seamlessly with a little bit of research. All of them have customer bases who choose to use the hosted option.
There are some pros to the paid/hosted option that can never be replicated by self-hosting:
- someone else handles crashes, bugs, and other emergencies
- economies of scale (large, purpose-built operations with costs shared my many customers)
- free (or cheap) customer support
The biggest reason I see people moving to self-hosted options is to keep their data private.