Supose I have a series of numbers from 1 to 10. Their mean value is 5.5. Now supose I apply some transformation like $y=2x+1$. Now their mean value is 12. Now, if I want to get back the original mean, I apply the inverse function, which in this case is $x=(y-1)/2$.
Simple.
Now I want to do the same, but with the $log$ function.
So, I first apply the $y=log(x)$ function and then take the mean. I get a value of 1.51. But then, if I take the inverse $x=e^y$, I get a value of 4.53 and not the original 5.5.
What is happening?
Your first function is linear. Your other one isn't. Calculating the mean is a linear process so it is maintained over your linear transformation while it isn't for a non-linear transformation.