Its hard to compare between the events, Phelps has more opportunity for golds compared to a competitor that is only competing in one event in a games, and if you lose that event you have no others chances for you to gain gold.
Steve Redgrave won 5 golds in 5 consecutive games. Which i feel is a greater achievement.