why row comes first then column
If you think mathematically you can think of a row as the x-axis and a column as the y-axis. The x-axis is always written first in a coordinate system, e.g. (5, 3) would mean 5 in the x-axis and 3 in the y-axis. For this reason the rows comes first, because they essentially represents the x-axis.