Stochastic growth in continuous time
More of a comment:

There should be an expectation operator in the statement of the problem, otherwise problem doesn't make sense.

That "...the deterministic and stochastic value function must be the same..." is not quite right. The value of $\sigma^2$ is crucial in the restriction

\begin{align}
\rho = \left(-n + \sigma^2\left(1 - \frac{\alpha\gamma}{2}\right)\right)(1-\alpha\gamma).
\end{align}

If $\sigma^2 = 0$, then presumably $\rho &lt; 0$ for economically reasonable $\alpha$ and $\gamma$, in which case the deterministic problem may be ill-posed. What is true is that the stochastic value function takes the given form only if the parameter restriction holds.

Factoring out the Ito term $\frac{1}{2} \sigma^2$ from the right hand side

$$
\sigma^2\left(1 - \frac{\alpha\gamma}{2}\right) (1-\alpha\gamma),
$$

the restriction can be written as

$$
\rho + n (1-\alpha\gamma) = \frac{1}{2} \sigma^2 [ (1-\alpha\gamma) - (-\left(1 - \alpha\gamma\right)^2)].
$$

On the right hand side, we have a elasticity of intertemporal substitution term $(1-\alpha\gamma)$ and a risk aversion term $-\left(1 - \alpha\gamma\right)^2$. What the restriction says is that, with a particular choice of $\sigma$, they offset each other, up to time preference $\rho$ and the drift $n(1 - \alpha\gamma)$. Therefore the value function is independent of $\sigma$.

That the value function is independent of $\sigma$ is an artifact of the restriction, and choice of CRRA $u$. Not true in general.