OpAmps can be used as a buffer when the output is connected back to the input and no feedback network is included.
The output of the OpAmp is the same as the input to the OpAmp, however, there is zero current flowing from the input to the output. This is how the circuit acts as a buffer.