Even though most of the people writing Joomla and other open source software don't get paid for it, there's still money to be made in support, customization, implementation, graphics, etc. So lots of people are making money around it. Joomla has a healthy ecosystem around the software that feeds the developers and keeps pushing the project forward.