A prostitute in an act of pity is keeping chaste company with a condemned man through the night before he is to be hung.
"The Girl's Shepherd" - at that time a common name for a pimp. About promiscuity and naivety leading up to complicated situations.