Why are there restrictions on the domains of inverse trigonometric functions

to restrict the domain to a single period (or half-period)

cos(0) = 1
cos(2Ļ€) = 1
so what is cos-1(1) supposed to be?