I think most of those people believe torture works AND is also justified to prevent "greater evil", because that's how it is being presented repeatedly in media.
It's still a quite popular trope in TV series that the protagonists "were forced to take drastic actions" to prevent "the bad people" from executing their plan.
They sometimes feel torn about doing it, but in the end it is portrayed as necessary and effective in stopping whatever threat...