According to the Godot Shading doc, if you do not write a shader function, then the default one is used.
Aka, as long as you don't touch the output, then nothing "new" happens.
By plugging the diffuse input to the diffuse output, you are making a modification, therefore losing the default behavior.