Suppose that we are interested in non-linear regression where we have the pairs $(X_i, Z_i)_{i=1}^n$ observed and consider the regression of $Z$ on $X$:
$$ \forall i \in \{1, \ldots, n\} \ \ Z_i = f_{\theta}(X_i) + \epsilon_i $$
for generic functions $f_\theta, \theta \in \mathcal{H}$, where $\mathcal{H}$ is the parameter space and noise terms $(\epsilon_i)_{i=1}^{n}$. The least squares estimator is defined as:
$$ argmin_{\theta\in \mathcal{H}}\sum_{i=1}^{n}(Z_i-f_\theta(X_i))^2 $$
I was told that in order to consider this estimator, we don't have to specify the distribution of $\epsilon_i$ nor do we have to specify a likelihood.
Can someone tell me why this is the case? Thanks.