I think because length starts from one and indicies start from 0
When you use ' - ' it starts from the back, so -1 is '!', -2 is 'e', -3 is 'd' etc