From one project I worked on: a fun community, experience with managing a project, a nice item on my resume, and an unexpected distaste of companies pretending to love open source and not giving anything back.
A nice item on my resume presumes a company sees profits which you are assuming a company desiring profits is willing to make 0 profit deals when spending money on assets. It's flawed at its core.
Oftentimes it's someone creating and maintaining a piece of software or tooling for themselves and their own benefit. They just happen to be nice and forward thinking enough to share it.