Why is the directory for the application source code named "lib"?

Probably copied from Ruby

The default value is “lib”