depends on the project. Some projects are spun out from major corporations. Others are one dude making a thing and it gets used everywhere and taken over by venture capital firms.
Some projects will have sponsorship, there are also government grants they can get, but I would say most comes from regular users doing reoccurring dontations.