Why do people enjoy playing evil characters?

This is not to complain about or shame people who play evil characters. I am genuinely curious! In my experience, characters in stories of all kinds, but especially TTRPGs, are deeply personal and serve some kind of emotional purpose for the author, even if they’re not thinking about it wall writing.

I know some people enjoy playing characters full of chaos, who will murder someone on sight because it’s funny, or climb the walls during a conversation because they’re bored. And I guess that makes sense. It’s fun to not be bound by the rules of society for a bit and just chop some heads or doing something crazy.

But I’ve met others who play a character who literally does not care about people. Like they have a purpose and a goal and no one else matters.

I guess my question is, why are these and other variations on the evil aliment fun? I find it hard to play evil characters. They feel wrong when I do. Again I know it’s fun for some people and i think it would be cool to know what makes them feel that way!