The short version is "because dividing by a number is the same as multiplying by its reciprocal". For instance, you can divide by 2 = 2/1, or you can multiply by 1/2.
Since it is the divisor that gets flipped, you would then flip the
second (or "bottom") fraction, and then multiply.
