Respuesta :

When the benefits of causing those painful stimuli are greater the the costs that come from them.
It is usually taken into account for laboratory use of animals in research or testing the principles of the Three Rs: replacement, refinement, and reduction.