Grab any video game - Dark Souls level hard, or Hello Kitty Nail Salon easy - and you'll likely find one person who cheated while playing through the game. It's human nature that some people want to succeed by any means necessary, especially since doing so doesn't exactly harm anyone (even if it annoys people when you do it on a multiplayer game).
Be it out of a sense of vengeance, or just sheer convenience, sometimes games will do the exact same thing, and cheat right back at you in order to mess you up. While the method varies - from breaking its own preset rules to straight up punishing you where it would never punish its precious AI children.
Generally, this isn't strictly speaking a bad thing. It can make you feel saltier if you lose, sure - because it feels more unfair - but the inverse is that you feel like an absolute champion every time you succeed in a situation that seemed tailored to lead to your defeat (even if that, realistically, probably wasn't anywhere near the actual case).