The calculator is very strictly following order of operations as it knows them, whereas we are usually ignoring certain things. It's most likely giving you zero minus the opposite of 2 squared (4). Not zero minus negative two squared (-4).
[0] [minus] [2] [squared] makes sense to be -4
But
[0] [minus] [negative] [2] [squared] should also be -4