The story behind why drinks are measured in Pegs?

The story behind why drinks are measured in Pegs?