the question is, if we as a society want to encourage activities that are for the benefit of everyone.
a sport maybe a hobby. running a sportsclub is volunteer work. writing code for fun is a hobby, publishing and maintaining it for others should be volunteer work.