I've generated a 3 by 5 matrix using Matlab:
$$ A=\begin{pmatrix} 21 & 3 & 4 & 4 & 17 \\ 23 & 7 & 25 & 11 & 1 \\ 4 & 14 & 24 & 23 & 22 \\ \end{pmatrix} $$
A right inverse to this matrix is
$$ A^{-1}=\begin{pmatrix} 0.0315 & 0.0191 & -0.0252\\ 0 & 0 & 0\\ -0.0300 & 0.0236 & 0.0221\\ 0 & 0 & 0\\ 0.0270 & -0.0292 & 0.0259\\ \end{pmatrix} $$
This inverse was found using this method: column 1 of the inverse is equal to the solution of $$ Ax=\begin{pmatrix}1\\0\\0\\\end{pmatrix}$$ Column 2 of the inverse is the solution to $$ Ax=\begin{pmatrix}0\\1\\0\\\end{pmatrix}$$ And so on.
Now, let B be a matrix made of the non-empty rows of $A^{-1}$. In this case,
$B=\begin{pmatrix} 0.0315 & 0.0191 & -0.0252\\ -0.0300 & 0.0236 & 0.0221\\ 0.0270 & -0.0292 & 0.0259\\ \end{pmatrix}$
Multiplying $BA$ gives the following
$ BA=\begin{pmatrix} 1.0000 & -0.1241 & 0.0000 & -0.2427 & 0.0000\\ 0.0000 & 0.3846 & 1.0000 & 0.6480 & 0.0000\\ 0.0000 & 0.2393 & 0.0000 & 0.3827 & 1.0000 \\ \end{pmatrix} $
As you can see, a submatrix of $BA$ is the identity matrix. What is going on? I've tried with multiple matrix and this result always shows up.