When one contributes to a soup kitchen without getting paid in money, the person still gets a value be it a growing social network, a line in a CV, experience of working and organizing people etc. So it is not a work for free as one does get a value that can be exchanged for other things.
Similarly with open source work. It brings a value in forms of contacts and experience.
Similarly with open source work. It brings a value in forms of contacts and experience.