It means that a person, or an animal, is killed with the idea to avoid suffering - for example, in the case of severe and incurable illness.Since killing humans is generally frowned upon, the idea of mercy killing is ... controversial, at least in the case of humans.