Johano got the boys to learn Esperanto so that they could understand each other.
The sentence implies that Johano wanted his group of boys to be able to communicate with one another effectively, and he achieved this by teaching them Esperanto.