Profit is not always related to the money obtained directly, but indirectly, good reputation, fame, adding work to your CV, helping others are all things that bring you money indirectly, and therefore all open-source, self-hosted wallets are based on such a philosophy.
I wouldn't go as far to say that "all" open source software is following that philosophy.
Not always, but at least there are some people out there that want to contribute to what they consider a worthy project. I mean, if we take Satoshi no matter his background he didn't exploit Bitcoin to better his career or status. They just made something they thought the world needed. So, we do know that there are people out there that aren't always looking to benefit from it directly.
Sadly, capitalism does encourage what you've said, and therefore the majority are doing it to better themselves in one way or another.