What looks out of place to you in that example?
Would it make more sense to you with a very slightly less arbitrary example, perhaps arr = ['Value for 0', 'Value for 1', , 'Value for 3', 'Value for 4']; instead of simple mapping ints to ints?
Because array contents are mutable [even if the array variable itself is declared const] that third index may be populated at a later point in the code.