What is the logic in the packing of the characters into words?

Ioannis