The exact solution is contained in the box $(t,y(t))\in[0,1]\times[-1,1]$. Using a bound on the $y$ derivative as Lipschitz constant and using $y'\ge 1\implies y(t)>t+y(0)$ gives $L=10e^5=1484.13..$. A simplified stability condition for RK4 is $Lh\le 2.5$, which all the discussed step sizes do not satisfy. The Lipschitz constant can be improved using a non-rectangular region around the exact solution, however it is doubtful that one would get $L\sim 12$ which would be required to explain the qualitatively good behavior of $h=0.2$. However, that one observes grossly deviating behavior for such large step sizes as in $h=0.25$ is not surprising.
Exact solution
Set $u(t)=\frac1{y(t)-t}$ then $u'(t)=-5e^{5t}$ so that
$$
u(t)-u(0)=1-e^{5t}
$$
Inserting $u(0)=\frac1{y(0)}$ gives the solution in the original variables
$$
y(t)=t+\frac{y(0)}{1-y(0)(e^{5t}-1)}.
$$
The denominator has a root at $t=\frac15\ln(1+\frac1{y(0)})<1$, so that $y$ has a pole inside the integration interval for $y(0)>\frac1{e^5-1}$.
A solution with singularity
The originally given wrong initial condition $y(0)=1$ would fall into this situation with a numerical position for the pole at $0.13862943611198905$, making steps with step sizes $h=0.2$ or $h=0.25$ meaningless. With step sizes $h<0.1$ this pole will be captured in some way. Due to the tendency of explicit methods to straighten convex solution curves is that the divergence will be reached later than in the exact solution, moving to the correct position with finer step sizes.
The corrected IC gives a regular solution
With the corrected initial condition $y(0)=-1$, then also $u(0)=-1$ the exact solution has the simple form $$y(t)=t-e^{-5t}.$$ The $y$-derivative of the ODE function along this path is $\max_{t\in[0,1]}|5e^{5t}\cdot2(-e^{-5})|=10$. If the step size is small enough so that the numerical solution stays close to the exact solution, the simplified stability condition gives $h<0.25$. However, any deviation from the exact solution has a positive feed-back effect in that the Lipschitz constant for the larger region rapidly increases, making the violation of the bound for admissible step sizes more acute, which is what happens at $h=0.25$ where at $t=0.5$ the computed value is $y=3.4375$ which is far away from the exact value $0.4179$ and has a derivative of $f(t,y)=526.5992$ giving dangerously large offsets in the stages of the next RK4 step.
Another view of this problem is to consider the exact solutions going through the points of the numerical method. If these exact solutions are not well-behaved in forward time, then also the numerical method can not be expected to give better results. In the following plot one sees that the situation is not very stable even for $h\in[0.1,0.2]$, where the numerical solution itself looks acceptable. The divergence for $h=0.25$ is present in the exact solutions with the point after the first step.
