Why was he surprised that it works? -1 is a perfectly normal integer and -= is a perfectly valid operator.
i -= -1
works, formatted as
i-=-1
it's unclear what each - is doing, likely someone did it because it looks nice and symmetrical, as opposed to
i+=1