Of course, one of those hobby operating system grows into Linux, and suddenly that experimentation doesn't seem pointless anymore.
A contractor at CERN wants a faster way to share research papers. Isn't this outside the scope of his work, though? Isn't he wasting CERN's money with this project? People can just share papers via Usenet anyway. Who even needs the World Wide Web?
Most people don't set out to "bring benefit to your fellow man." Most people fool around with side projects or new ideas. These projects, which seemingly offer "trivial benefit to humanity," are the ones which make a difference in the world.
Experimentation or invention for any reason (including profit) is valuable, precisely because we don't know where this experimentation will go.