Is this a question from a mock exam? If so, make sure (please) to tell us where it is from.
Probably because Java evaluates expressions from left to right. It starts with array[index], at which point index is 0. Then it tries to assign that value, and assigns it to the value of the expression to the right of the first =.