Purpose of this coding style
In this particular case, not covered in the Stackoverflow answers, it gives you the opportunity to declare a local variable that is shared among the three statements and used nowhere else.

This kind of explicit optimization of storage can be important on small microcontrollers.