I fear you may have misheard your teacher on a very subtle point, or your teacher may not have wanted to get into this complexity.
In the real number system, each real number > 0 has two square roots, one positive, one negative. Zero has one square root, namely itself, and negative real numbers have no real square root at all.
But the square root FUNCTION is defined as non-negative.
[MATH]x \ge 0 \implies \sqrt{x} \ge 0 \text { and } - \sqrt{x} \le 0.[/MATH]
There are two square roots of a positive real number, the non-negative one indicated by the square root symbol, the non-positive one indicated by a minus sign before the square root symbol. The same goes for every even root of a positive real number.
In the real number system, every number has one cube root. If the number is positive, so is the cube root. If the number is negative, so is the cube root. If the number is zero, the cube root is zero. And the cube root function does need to be not defined in terms of sign because each is unique. The same goes for every odd root of a real number.
With respect to even roots, we need a way to distinguish between the positive and negative ones. We do that by saying the root symbol refers to the positive one.
Got it? It is a tricky little point.