If you put these comments inside the code blocks they apply to it's easier to visually follow the control flow.  Because these blocks are physically separated from each other it's not immediately obvious to the reader that this is an if-else chain.