The appeal of torture games is uncomfortable to admit but easy to explain: they tap into a fascination with violence that sits close to the surface for a lot of people.
Fiction has always provided a safe container for that curiosity. In a game, the consequences are simulated, the frame is clearly unreal, and the player stays in control of when it stops. That combination lets people explore a taboo without any real harm.
There's also the shock-value angle. Games built around transgression get shared and talked about precisely because they cross a line, which draws in players who are curious more than cruel.
None of that makes the genre tasteful, but it does mean the motivation is usually curiosity rather than genuine malice.