'a'-'A' calculates the distance between upper case 'A' and lower case 'a'. The distance between upper and lower case is the same for all letters so it doesn't matter if A or some other letter is used here.
If element is an upper case letter and you add the distance between upper and lower case letters you will get the lower case version of the same letter.