I don't think whoever wrote that section of the Wikipedia article meant that the first formula in your question follows from the second one. The author probably only meant to say that when $A$ and $B$ do not commute, we can still evaluate the determainant of the block matrix by $\det(A+B)\det(A-B)$. At any rate, the two formulae hold because \begin{align} &\pmatrix{I&-I\\\ 0&I}\pmatrix{A&B\\\ B&A}\pmatrix{I&I\\\ 0&I}=\pmatrix{A-B&0\\\ B&A+B},\\\ &\pmatrix{A&B\\\ B&A}=\pmatrix{A&0\\\ B&I}\pmatrix{I&A^{-1}B\\\ 0&A-BA^{-1}B}. \end{align} So, if you really want to relate $\det(A-B)\det(A+B)$ to $\det(A)\det(A-BA^{-1}B)$, you may combine the above two equalities: $$ \pmatrix{I&-I\\\ 0&I}\pmatrix{A&0\\\ B&I}\pmatrix{I&A^{-1}B\\\ 0&A-BA^{-1}B}\pmatrix{I&I\\\ 0&I}=\pmatrix{A-B&0\\\ B&A+B}, $$ but I don't think doing so is very meaningful.