The collective noun "pity" was first used on 15th century lists of proper terms, and it then referred to a group of prisoners. It showed up in print in books purporting to provide the a collective noun for people locked up in jail or a prison camp. Basically, books were the place where the word showed up. It appeared in the Book of St. Albans attributed to Dame Juliana Barnes (1486). It was also used as a humorous term and probably had no real significance. Some antiquarian writers used it in their works to allude to a class of playable characters mostly found in dark dungeons.

Often key characters in some of the written material would look down with pity and compassion upon the sufferings of the men in jail, prison, or a harsh dungeon.

More Info: en.oxforddictionaries.com