The result of $1+\frac1n$ is not exactly representable in floating point, you will get an error $\delta$, the value in memory is $1+\frac1n+δ$ with $|δ|\lessapprox\frac{\mu}2$ (rounding to next) where $\mu\approx 2\cdot 10^{-16}$ is the machine constant.
In the final expression this propagates to
\begin{align}
\left(1+\frac1n+δ\right)^n
&=\exp\left(n\ln\left(1+\frac1n+δ\right)\right)\\
&=\exp\left(1+nδ-\frac n2\left(\frac1n+δ\right)^2+...\right)\\
&=\exp\left(1+nδ-\frac1{2n}-δ-\frac12nδ^2+...\right)\\
&=e\cdot \left(1+(n-1)δ-\frac1{2n}+...\right)
\end{align}
using $e^{a+b}=e^a(1+b+\frac12b^2+...)$ if $|b|\ll 1$.
The leading terms in the relative error are $(n-1)δ$ and $-\frac1{2n}$. The first, random term will reach in its bound the size of the second, theoretical error at around $n\simeq \sqrt{\frac1{\mu}}$ which is about $10^8$. For larger $n$ the random floating point error of maximum size $n\frac{\mu}2$ dominates.
Around $n=10^8$ where both influences balance, it can happen by chance that they are really of equal size but opposing sign, that is, that $δ\approx-\frac1{2n^2}$, so that the resulting error is much smaller than the bounds predict.
- For the given example $n=252257928$ in the question one gets $2^{52}(\frac1n+\frac1{2n^2})=17853153.999968924$, and thus a very small combined error around $n\cdot 3⋅10^{-5}⋅\mu=1.5⋅10^{-12}$.
- For the "normal" case example $n=215450934$ this mantissa computation leads to $\frac{2^{52}}n=20903133.459474795$ and thus rounding down by about $δ=-0.5⋅\mu<0$, so that the errors $-0.5/n=-2.32⋅10^{-9}$ and $-0.5⋅\mu⋅(n+1)=-2.39⋅10^{-8}$ reinforce each other.

n = SetPrecision[252257928,16]; (E-(1+1/n)^n)/Egives1.982098*10^-9andn = SetPrecision[215450934,16]; (E-(1+1/n)^n)/Egives2.320714*10^-9. Both of these match the relative error of $\frac1{2n}$ I mentioned above. – robjohn May 24 '19 at 04:05[err abs(e - result)/abs(e)]mean in Matlab? – robjohn May 24 '19 at 04:14SetPrecisiononly tells Mathematica what the precision, that is $\frac{\text{maximum error}}{\text{value}}$, of a given number is. It will then use arbitrary precision math to give as accurate an answer it can with the given precisions of the numbers given it.. – robjohn May 24 '19 at 14:22exp(n*log1p(1/n))as alternative expression. – Lutz Lehmann May 24 '19 at 14:28Round. For example,n = SetPrecision[252257928,16]; (E-Round[1+1/n,2^-52]^n)/Egives-1.741*10^-12where round-off error is larger than the error of $\left(1+\frac1n\right)^n$, which which would result in a value of1.982098*10^-9. – robjohn May 24 '19 at 14:39digitsOld=digits(100)andn=vpa(252257928)ande=exp(vpa(1))then evaluating things. – robjohn May 24 '19 at 15:01digitsOld=digits(100). – robjohn May 24 '19 at 15:10