People enjoy the interaction on the Internet, and the feeling of belonging to a group that does something interesting: that's how some software projects are born.
The fame and reputation part came later, and never was much of a motivator, although it did enable me to work without feeling guilty about neglecting my studies.