villains and heroes

Why is it that in most movies the hero always wins? I mean why doesn’t the villain win in a few occasions…

the hero is always the one closer/endeared to the audience. how can he be defeated.

Usual suspects,
Hannibal
Seven
The Omen
Fallen
…to name but a few where the protagonist wins or rather the movie doesnt take the usual ending of happy ever after

In movies, the heroes win but in real life, the villains carry the day. Ang’owa?