A bad guy always assumes he's going to win, whereas the good guy has to struggle with, what if I lose?, and the audience wants to struggle with him.
You can write a great book and be ignored. Literary history is full of classics that were under-appreciated in their own time.