The XOR logic operation returns true if either of its inputs differ and false if they are all the same.
As the two inputs are the same, the operation returns false, which is 0, and negating 0 would be 1。