Zero matrix is also diagonal matrix and we know we can’t have inverse for the matrix for which determinant == 0
so for Zero matrix we can’t have inverse => G is not a group
But other Property like Closure , Associativity (Matrix multiplication is Associative) and identity element ( identity matrix is identity element for Matrix Multiplication ) is there so it is monoid