Apprentice coder

I realise that this is normal behaviour but what I am trying to ask is why the code "uses" row 0 then goes to the columns "for loop" lighting all LED's in the row 0 and then incrementing the row counter to row 1 and lighting all the LED's in row 1. Why does the code remain in the column "for loop" incrementing from col 0 to col 7 before going back to the row "for loop"