Your CPU has increased load during your games, which leads to higher power consumption, meaning producing more heat, causing the fan to speed up to spread those heat, especially if you’re using 1–2 years old Intel CPUs. The higher the resolution of the game, the louder your fans will run. The same applies for GPU fans as well.