Strange behaviour setting pinMode by array

I'm sorry, I don't understand this part of your code. I'm just beginning. Could you please explain ?