Such a person does not get the pleasure from the scratches, but from the rock climbing. That is the difference between them and your puppy torturer.
On the contrary, I would imagine they do as much as they can to avoid being scratched, and if they could do the rock climbing without being scratched at all they would prefer to do so. It’s like women and childbirth - they accept that there is pain involved, and endure it for the greater reward that comes with it. They don’t derive pleasure from the pain of labour in and of itself, and many will opt for what pain relief they can have. Even those that don’t avoid it because they are concerned about potential harm to the baby from painkilling drugs and whatnot, it’s not like they enjoy the pain!
Your puppy torturer, on the other hand, has no greater purpose in mind than their own pleasure, and derives the pleasure from no other factor in that situation than the infliction of the pain. If they did, they would cuddle rather than kicking the puppy.