To make Java more memory efficient (because no new objects are created if it exists already in the string constant pool).