Maybe he was so mad and took off after Locke picked the knife because he got all the answers right, which meant he would be the future leader of the island after he took over Ben's position. This could have made Richard mad because he wanted to be the one in control of the island.
"It's the 5 best moments of my...sorry excuse for a life. My greatest hits. You know...memories. They're all I've got. "