The problem with video games and being 'evil' is a lack of nuance or exploring the space.
You can either be 'good' or 'evil' and there might not be much middle ground nor realistic reasons for being either.
TTRPGs are much better places to explore this dichotomy in because you can have actual reasons and it's not just about being a mustache-twirling villain or goodie two shoes.