Why was the Konami Code created?

The developer who was converting the game from its arcade version to the console version, Kazuhisa Hashimoto, couldn't actually beat the game because it was too hard, so he created what would come to be known as the Konami Code, to give himself a cheat that tricked out his little ship with all the game's power-ups .