Multiplication, before the invention of modern (axiomatic) algebra, was defined as the operation giving the area of a rectangle with sides of a particular length.1 Commutativity of multiplication then follows from two axioms:
- Congruent geometrical figures have equal areas
- Any geometrical figure reflected through a line is congruent to the original figure
and the observation that reflecting a rectangle through a line through a corner at a 45 degree angle from the two sides flips the roles of the sides of the rectangle, so the side that formerly corresponded to $a$ in the figure now corresponds to $b$ and vice-versa. Since the first rectangle corresponds to $a*b$ and the second rectangle corresponds to $b*a$, and they have the same area, $a*b = b*a$.
Note: the geometrical intuition behind this proof is still used today, in the proof in set theory that $|A\times B| = |B \times A|$. (The regular inductive proof you may have seen for integers would work for finite sets, but for infinite sets it's easier to do a direct 'geometrical' proof).
1 For example, Euclid states the theorem which today we would state as "the area of a triangle with height $h$ and base $b$ is $\frac{1}{2}bh$ as "If a parallelogram and a triangle are on same base and in the same parallels, the parallelogram is double the triangle", i.e., "the area of a triangle with height $h$ and base $b$ is half the area of a parallelogram with the same height and same base". Archimedes goes a step further and states the theorem "the area of a circle with radius $r$ is $\pi r^2$" (which he was the first to prove) as "The area of any circle is equal to a right-angled triangle in which one of the sides about the right angle is equal to the radius, and the other to the circumference, of the circle", i.e., "the area of a circle is $\frac{1}{2}rC$". Note that $\frac{1}{2}rC = \frac{1}{2}r\pi D = \frac{1}{2}r\pi 2r = \pi r^2$", but Archimedes evidently lacks the language to express his result in that form.