Maybe the pixels array is 1D because the computer memory is 1D
In computer programming there’s often a struggle between: should we make it easier for humans or for computers? Often the faster approach for the computer is not the intuitive approach for us (unfortunately).