Game developers used to be primarily Windows-oriented for a long time. However, nowadays more and more games are being adapted to macOS — especially since Apple began using Intel processors.
Apple realises that most games will be released on Windows first, so they offer a sneaky solution to Mac users — you can use Windows through Boot Camp. This utility allows you to expand your gaming opportunities and switch between operating systems whenever you like.