I think what you generally learn is that code you write yourself is potentially slow whereas code from dedicated libraries is probably faster. I don't think it's best practice in any language to write your own matrix multiplication with for loops.
(P.S. Python has some JITed implementations and also has a built in matrix product - @)
(P.S. Python has some JITed implementations and also has a built in matrix product - @)