They are using the opamp as a unity gain current amplifier or as a buffer. That's useful when you can get the voltage you want from your microcontroller, but need more current, or you need to change the impedance. Most 'duinos output have a pretty high source current spec though, so i suspect...