Sometimes it does work out. For example, Zulip was acquired by Dropbox, spun out as an open source project, and now has its own foundation backing it, along with a board, etc.
Most of the time, it doesn’t. But it can.