The two aren't mutually exclusive. It is a common monetization strategy for open source projects to offer a paid hosted option in addition to free self-hosting. For example, you can self-host Matrix (synapse, dendrite, and conduit) but you can also pay the creators of Matrix to host it for you[1].