Under the US constitution, this is the sole purpose of copyright, not commercial gain:
To promote the progress of science and useful arts, by securing for limited times to authors and inventors the exclusive right to their respective writings and discoveries.