If you are producing free software that demonstrates that you are an expert in the domain, you may then be able to leverage that reputation to gain related consulting work. This might be helping other companies solve similar problems in their software, ensuring their product works with yours, or customising your software to meet their needs.