I do not understand the first example right after the topic of function composition is introduced in Mathematik für Ingenieure by Thomas Reissinger.
There is a function $g : \mathbb{R} \rightarrow [0, \infty)$ defined as
$$g(x) = x^2 + 1$$
and a function $f : [0, \infty) \rightarrow \mathbb{R}$ defined as
$$f(x) = \sqrt x$$
in order to explain $h = f \circ g$.
I understand that $[0, \infty)$ would be appropriate as domain for $f$. But why is the codomain of $g$ $[0, \infty)$ and not $[1, \infty)$?