5x7 LED Matrix Issue

could you explain why the matrix is wired incorrectly? which way should it be?