It may not be obvious why anyone would give away their source code, rather than making money from it. But there are several reasons to publish (or open) source code: