The exponential function is a very important function and it arises naturally.
For instance, consider the limit $\displaystyle \lim_{n \to \infty} (1+\dfrac{1}{n})^n$.
The limit is evaluated to be the real number $2.718281\dots$ which is denoted by $e$. Another limit $\displaystyle \lim_{n \to \infty} (1+\dfrac{x}{n})^n$ is evaluated to be $e^x$.
Okay, it's easy to check by the binomial expansion of $\displaystyle \lim_{n \to \infty} (1+\dfrac{x}{n})^n$ that $f(x)=e^x$ satisfies the property $f(x)f(y)=f(x+y)$.
But how did we come to know that the inverse function of $e^x$ is $\log x$? Introducing $\log x$ as $\displaystyle \int_1^x \dfrac{1}{t} \ dt$ is unintuitive and it doesn't tell any property the function has.
For instance how did we come to know $f(x)=\log x$ satisfies the property $f(xy)=f(x)+f(y)$?
And what was the motivation for introducing the logarithmic function? It doesn't make calculation any easier.
Historian Tom Whiteside described the transition to the analytic function as follows
Source: https://en.wikipedia.org/wiki/History_of_logarithms
Mathematical Association of America: Articles on History of Logarithm