The stipulation is mostly relevant for preventing the instance of multivalued functions - functions that attain multiple values for a given input. For example, you could define $f(x) =\pm \sqrt x$ and then have $f(4)=2$ and $f(4)=-2$.
This stipulation prevents such cases.
That's not to say multivalued functions aren't useful or ever considered. But it seems that, with your first forays into functions and set theory and such, you'll usually stick to single-valued functions.
(There might be similar notions of totality for multivalued functions that don't make the stipulation, but this isn't something I would know about. If I had to guess as to _why_ we make the stipulation beyond "we want to focus on single-valued functions," I guess it's because multivalued functions might be more complicated to handle and that single-valued functions are easier and more familiar with most people.)