A grid of values addressed by row and column. Its older sense is womb — the ground something forms within.
Latin matrix (a womb, a breeding female), from mater (mother); the ground within which something else takes form, later narrowed to a grid of values addressed by row and column.
A ground something else takes form within, narrowed in this house to rows and columns rather than a body.