A negative multiplied by a negative results in a positive number, therefore -2^2 (or -2 * -2) is 4.
The calculator needs it to be wrapped in parantheses so it knows to square the negative number. Without parantheses, it calculates it like this:
-1*2^2
-1*4
-4