As mentioned in the comments, the choice is completely arbitrary. Whichever choice you make, the resulting code will be optimal. Any particular algorithm will have a specific kind of behavior. One can speculate why they made this particular choice here — perhaps they had a tie-breaking rule in mind, perhaps they wanted the most aesthetically pleasing tree — but it's not very important.
As mentioned in the comments, the choice is completely arbitrary. Whichever choice you make, the resulting code will be optimal. Any particular algorithm will have a specific kind of behavior. One can speculate why they made this particular choice here — perhaps they had a tie-breaking rule in mind, perhaps they wanted the most aesthetically pleasing tree — but it's not very important.