Mathematica represents matrices and vectors using lists. Anything that is not a list Mathematica considers as a scalar.
A vector in Mathematica consists of a list of scalars. A matrix consists of a list of vectors, representing each of its rows. In order to be a valid matrix, all the rows must be the same length, so that the elements of the matrix effectively form a rectangular array.