My complex analysis book states this as a theorem without proof:

"A holomorphic function f(z) cannot map a ball D (subset of) C
into a unit circle S1 (subset of) C unless f is constant."

It's in the chapter on the Cauchy Riemann Equations. Maybe it's supposed to be obvious, but I don't get it.
Would appreciate any help on clarifying this!