Because you might be taking the defaultValue from somewhere else:

optional.or(getDefault())

and this statement is supposed to be null safe.