How Do People Find The Cheats For Video And Computer Games?

When I play the Sims 2 on the computer I sometimes look up cheats for it. And there are websites with a bunch of cheats that someone posted. How do people find all those cheats?