It doesn’t do a simple sum of the characters values, because then “ab” would be treated the same as “ba”, which would be useless for sorting. You can find a bit more of how this works here:
It’s useful for sorting, e.g. in Array.sort_custom() function. It’s even mentioned there in the documentation as an example of proper sorting of array of Strings.