On older hardware — PS1, PS2 and that generation — cheats can cause trouble. Entering a code forces the game to render more than it was built to handle, which eats into already limited memory.
The result is slowdown and longer load times as the console struggles to draw everything. Newer systems have far more headroom, so they generally shrug it off.