Why weights matrix is transposed?

Why weights matrix is transposed ?

To match the elements in the rows from Inputs to the columns match.

To perform matrix multiplication we need to match the number of rows (3) in inputs (X) with the number of columns (3) in weights.