well, this is hardly a surprise:
sage: random_matrix?
...
Warning: Matrices generated are not uniformly distributed. For
unimodular matrices over finite field this function does not even
generate all of them: for example "Matrix.random(GF(3), 2)" never
generates "[[2,0],[0,2]]". This function is made for teaching
purposes.
---------
Improvements to this code are most welcome.
I looked at it many years ago, and it was a horrible broken mess.
After that ticket it still was quite a mess, at least it did not hang our teaching notebook server any more :-)