In the first pair of equations, we have a logarithm and an exponential equation.
These operations are inverse operations, and the definition of one operation uses the other:

In the same way, the second pair of equations have a product and a division between two numbers. These operations are also inverse operations, and we can write the following definition:

Therefore the relationships are similar because both relationships show inverse operations.